Search found 669 matches

by Scott Klement
Fri May 10, 2024 5:54 am
Forum: HTTPAPI
Topic: Unable to compile the program which uses Httpapi
Replies: 6
Views: 67

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: 16
Views: 4602

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

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

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

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

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

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

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) ...
by Scott Klement
Tue Apr 30, 2024 8:28 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 16
Views: 4602

Re: OUATH2

As far as I can tell there isn't a problem, here. If you want to see the whole string in the green-screen debugger, you can type this at the debuggger's command line: eval MY-VARIABLE:C 1483 That will show 1483 bytes of the variable. (Keep in mind that a VARCHAR variable starts with either 2 or 4 by...
by Scott Klement
Tue Apr 30, 2024 1:29 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 16
Views: 4602

Re: OUATH2

How did you come to the conclusion that you've only received 1021? The ILE Debugger in the operating system will, by default, only show 1024 characters. I could see how you might confuse that for only receiving 1021 (with a slight miscount) characters. Could that be what you're seeing? The only othe...