• Re: Inertacting with website

    From Heraldo Gama@21:1/5 to All on Fri Oct 1 18:58:12 2021
    Em terça-feira, 28 de janeiro de 2020 às 00:16:28 UTC-3, John Kniewasser escreveu:
    Good day everyone,

    With all the help I have received from this group I am pleased to report that I can now post to a RESTAPI using JSON.

    The problem I was having was in the request headers..

    Thanks everyone!

    Cheers JK
    Hi, John.
    How did you manage to solve the problem? I can't send a JSON when using "Content-Type: application/json" in the header.
    Tks.

    Heraldo Gama

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nk@21:1/5 to All on Sat Oct 2 17:51:24 2021
    Hello Heraldo,

    there is a small error in the METHOD _WinHttpSendRequest( cHeaders AS
    STRING, cOptional AS STRING, dwTotalLength AS DWORD, dwContext AS DWORD
    PTR ) AS LOGIC PASCAL CLASS winHttp method by Wolfgang.

    You should correct the following line:
    nOptionalLength := INT( SLen( cOptional ) // + nHeadersLength

    Kind regards
    Norbert


    Am 02.10.2021 um 03:58 schrieb Heraldo Gama:
    Em terça-feira, 28 de janeiro de 2020 às 00:16:28 UTC-3, John Kniewasser escreveu:
    Good day everyone,

    With all the help I have received from this group I am pleased to report that I can now post to a RESTAPI using JSON.

    The problem I was having was in the request headers..

    Thanks everyone!

    Cheers JK
    Hi, John.
    How did you manage to solve the problem? I can't send a JSON when using "Content-Type: application/json" in the header.
    Tks.

    Heraldo Gama


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Riedmann@21:1/5 to All on Sun Oct 3 12:36:48 2021
    Hi Norbert,

    there is a small error in the METHOD _WinHttpSendRequest( cHeaders AS
    STRING, cOptional AS STRING, dwTotalLength AS DWORD, dwContext AS
    DWORD PTR ) AS LOGIC PASCAL CLASS winHttp method by Wolfgang.

    You should correct the following line:
    nOptionalLength := INT( SLen( cOptional ) // + nHeadersLength

    thanks, I have corrected my code, and also the download on my website.

    Wolfgang

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Heraldo Gama@21:1/5 to All on Wed Oct 13 20:27:54 2021
    Em sábado, 2 de outubro de 2021 às 12:51:26 UTC-3, nk escreveu:
    Hello Heraldo,

    there is a small error in the METHOD _WinHttpSendRequest( cHeaders AS STRING, cOptional AS STRING, dwTotalLength AS DWORD, dwContext AS DWORD
    PTR ) AS LOGIC PASCAL CLASS winHttp method by Wolfgang.

    You should correct the following line:
    nOptionalLength := INT( SLen( cOptional ) // + nHeadersLength

    Kind regards
    Norbert
    Am 02.10.2021 um 03:58 schrieb Heraldo Gama:
    Em terça-feira, 28 de janeiro de 2020 às 00:16:28 UTC-3, John Kniewasser escreveu:
    Good day everyone,

    With all the help I have received from this group I am pleased to report that I can now post to a RESTAPI using JSON.

    The problem I was having was in the request headers..

    Thanks everyone!

    Cheers JK
    Hi, John.
    How did you manage to solve the problem? I can't send a JSON when using "Content-Type: application/json" in the header.
    Tks.

    Heraldo Gama

    Hi Norbert,

    Excellent!

    Coffee is promised to you and @Wolfgang.

    Thank you very much.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)