Search found 4 matches

by lgiammattei
Wed Jun 08, 2022 10:35 am
Forum: HTTPAPI
Topic: Trouble with post request
Replies: 4
Views: 2466

Re: Trouble with post request

Solved. I had made a mistake in the postData string variable for the request postData='?client_id=' + %Trim(TClientId) + '&client_secret=' + %Trim(TClientSecret) + '&grant_type=' + %Trim(TGrantType) + '&scope=' + %Trim(TScope); deleting the question mark at the begin of the string (i cop...
by lgiammattei
Tue Jun 07, 2022 8:47 pm
Forum: HTTPAPI
Topic: Trouble with post request
Replies: 4
Views: 2466

Re: Trouble with post request

Scott thanks for your attention, Are you certain that you should be sending your data in the URL? That sort of defeats the point of using POST, doesn't it? i know, but in SOAP UI it works Also, you don't appear to be calling the url-encoding routines. Is the data already encoded? that is something i...
by lgiammattei
Tue Jun 07, 2022 1:26 pm
Forum: HTTPAPI
Topic: Trouble with post request
Replies: 4
Views: 2466

Re: Trouble with post request

i forgot to write that i am using
HTTPAPI Ver 1.45 released 2021-09-20
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
by lgiammattei
Tue Jun 07, 2022 1:23 pm
Forum: HTTPAPI
Topic: Trouble with post request
Replies: 4
Views: 2466

Trouble with post request

Hi everybody, hope someone could help me understando qhat i am doing wrong. I am using httpapi to perform a POST request, the expected result is a JSON file that i want to save in the IFS for later use. The JSON contains a JWT token but that is not important now. I tried the request using SOAP UI an...