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: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 03:29:36 |
| Calls: | 12,099 |
| Calls today: | 7 |
| Files: | 15,003 |
| Messages: | 6,517,876 |