Search found 673 matches

by Scott Klement
Fri May 17, 2024 9:39 pm
Forum: RPG IV
Topic: QSYS2.HTTP_GET
Replies: 1
Views: 20

Re: QSYS2.HTTP_GET

In the Curl example, you are telling it to use X-API-Key as a header with a value of myapikey. In the HTTP_GET example, you are telling it to sign in with a userid and password, and that the userid to use is "X-API-Key: myapikey". That's very different from sending it as a header... Don't ...
by Scott Klement
Fri May 17, 2024 9:28 pm
Forum: RPG IV
Topic: XML Parsing no longer supported by IBM in 7.5?
Replies: 1
Views: 5

Re: XML Parsing no longer supported by IBM in 7.5?

Bear in mind that 7.5 is not new -- it was released over 2 years ago. I'm not sure what your boss is referring to, but it doesn't make any sense to say that "XML isn't supported anymore." There may have been a PARTICULAR XML package that support ended for -- I don't remember, honestly -- b...
by Scott Klement
Mon May 13, 2024 10:07 pm
Forum: HTTPAPI
Topic: DATA-INTO with YAJLINTO
Replies: 6
Views: 129

Re: DATA-INTO with YAJLINTO

I guessing there's something else going on in your program that you haven't posted here. I copy/pasted your code exactly as you posted it, and it works fine,. .....D*ame+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++ D List ds qualified d riskScore 2a varying d trackingid 32a vary...
by Scott Klement
Sat May 11, 2024 3:34 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 18
Views: 5105

Re: OUATH2

You are receiving the error "bad request", which indicates something is wrong with what you're sending. From what you posted here, your document isn't valid XML. There are stray < characters at the end of some of the lines. Keep in mind, though, that I can only really help you with HTTPAPI...
by Scott Klement
Fri May 10, 2024 5:54 am
Forum: HTTPAPI
Topic: Unable to compile the program which uses Httpapi
Replies: 6
Views: 233

Re: Unable to compile the program which uses Httpapi

You don't have authority to overwrite the CONFIG_H member in libhttp.

But if LIBHTTPU works for you, theres no reason not to use that. Have you looked to see where the HTTPAPIR4 service program is located like I asked you to?
by Scott Klement
Fri May 10, 2024 5:50 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 18
Views: 5105

Re: OUATH2

Broken pipe means its trying to send more data after the network has disconnected.

Most likely, this is a network error not a programming error. Why are you getting disconnected?
by Scott Klement
Thu May 09, 2024 3:38 am
Forum: HTTPAPI
Topic: Unable to compile the program which uses Httpapi
Replies: 6
Views: 233

Re: Unable to compile the program which uses Httpapi

It's looking for HTTPAPIR4 and not finding it in your library list. Type the following: WRKOBJ *ALL/HTTPAPIR4 This will tell you which library it is found in. Add this to your library list. If this doesn't show an object named HTTPAPIR4, it means that you didn't follow the instructions properly when...
by Scott Klement
Mon May 06, 2024 8:56 pm
Forum: HTTPAPI
Topic: http redirect 302
Replies: 6
Views: 188

Re: http redirect 302

I tried it myself, and the redirect URL is longer than the 1024 that HTTPAPI allows for a redirect URL. So I made http_redir_loc() return a longer string... you can get the updated code here: https://www.scottklement.com/httpapi/ Once you've updated to 1.51, recompile your program and try again. Thi...
by Scott Klement
Mon May 06, 2024 8:13 pm
Forum: HTTPAPI
Topic: http redirect 302
Replies: 6
Views: 188

Re: http redirect 302

HTTPAPI does not automaticlaly redirect, you have to code it... I don't know why you'd get a 403 error with HTTPAPI and not with SoapUI, though. I don't see anything obvious wrong with your code -- but I am not familiar with this API.
by Scott Klement
Mon May 06, 2024 7:59 pm
Forum: HTTPAPI
Topic: http redirect 302
Replies: 6
Views: 188

Re: http redirect 302

403 means you don't have access to the URL you requested. Perhaps you need to log in first?

Have you discussed the 403 error with whomever runs/maintains the API?