Good day everyone,Hi, John.
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
Em terça-feira, 28 de janeiro de 2020 às 00:16:28 UTC-3, John Kniewasser escreveu:
Good day everyone,Hi, John.
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
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
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
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,Hi, John.
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
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:50:21 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,632 |