Search found 671 matches

by Scott Klement
Mon May 13, 2024 10:07 pm
Forum: HTTPAPI
Topic: DATA-INTO with YAJLINTO
Replies: 6
Views: 29

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: 4761

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: 133

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: 4761

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: 133

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: 112

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: 112

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: 112

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?
by Scott Klement
Mon May 06, 2024 7:56 pm
Forum: General
Topic: API to receive file
Replies: 2
Views: 78

Re: API to receive file

There are three basic ways to do this in REST You can just send a file over HTTP. This is the easiest way. You can send a file as an "attachment". This involves sending a "regular" file like JSON or XML, with another file "attached" to it using a MIME-style multipart do...
by Scott Klement
Sun May 05, 2024 12:37 am
Forum: CL
Topic: Prototype CL subprocedure in a service program
Replies: 2
Views: 111

Re: Prototype CL subprocedure in a service program

Every CLLE module has exactly one procedure, named the same as the module name. I have never done this but have to think that dcl-pr would include EXTPROC with the name of the module (same as its procedure) in it. Yes, if you use EXTPROC it should be the same as the module name for a CL (or Cobol) ...