Search found 674 matches
- Fri May 17, 2024 9:53 pm
- Forum: HTTPAPI
- Topic: Problem compiling code
- Replies: 1
- Views: 28
Re: Problem compiling code
You appear to be trying to call the BASE64 utility. This is not part of HTTPAPI, it is a separate download and a separate binding directory that you'll need to bind to. If you're still having problems after resolving the above error, please provide the error messages. I have no idea what your post m...
- Fri May 17, 2024 9:39 pm
- Forum: RPG IV
- Topic: QSYS2.HTTP_GET
- Replies: 1
- Views: 37
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 ...
- Fri May 17, 2024 9:28 pm
- Forum: RPG IV
- Topic: XML Parsing no longer supported by IBM in 7.5?
- Replies: 2
- Views: 22
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...
- Mon May 13, 2024 10:07 pm
- Forum: HTTPAPI
- Topic: DATA-INTO with YAJLINTO
- Replies: 6
- Views: 363
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...
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...
- Fri May 10, 2024 5:54 am
- Forum: HTTPAPI
- Topic: Unable to compile the program which uses Httpapi
- Replies: 6
- Views: 428
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?
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?
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?
Most likely, this is a network error not a programming error. Why are you getting disconnected?
- Thu May 09, 2024 3:38 am
- Forum: HTTPAPI
- Topic: Unable to compile the program which uses Httpapi
- Replies: 6
- Views: 428
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...
- Mon May 06, 2024 8:56 pm
- Forum: HTTPAPI
- Topic: http redirect 302
- Replies: 6
- Views: 293
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...
- Mon May 06, 2024 8:13 pm
- Forum: HTTPAPI
- Topic: http redirect 302
- Replies: 6
- Views: 293
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.