Hi everyone,
I need to make an API call which returns a response greater than 65535 bytes, and I need it in full.
When i use :
response = http_string('GET': url: request: 'application/json');
I riceived a response maximum 65535 bytes and therefore it is trimmed.
How can i solve this?
Thanks in ...
Search found 4 matches
- Thu Mar 16, 2023 3:28 pm
- Forum: HTTPAPI
- Topic: Response greater than 65535 bytes
- Replies: 1
- Views: 6603
- Mon Feb 27, 2023 11:58 am
- Forum: HTTPAPI
- Topic: Wrong response with HTTPAPI
- Replies: 6
- Views: 14739
Re: Wrong response with HTTPAPI
Hi Scott and everyone ,
I noticed that the result is not a json document. Returns a string format.
To be clear, on POSTMAN when I make the request it automatically converts the result to a JSON, for "pretty view", but if I change the return type from "JSON" to "TEXT", the result is identical to ...
I noticed that the result is not a json document. Returns a string format.
To be clear, on POSTMAN when I make the request it automatically converts the result to a JSON, for "pretty view", but if I change the return type from "JSON" to "TEXT", the result is identical to ...
- Fri Feb 24, 2023 9:05 am
- Forum: HTTPAPI
- Topic: Wrong response with HTTPAPI
- Replies: 6
- Views: 14739
Re: Wrong response with HTTPAPI
Here is all the code.
**free
ctl-opt option(*srcstmt:*NODEBUGIO) dftactGrp(*no)
bnddir('HTTPAPI':'YAJL') DecEdit('0.');
/copy httpapi_h
/copy yajl_h
dcl-pr cmd extpgm('QCMDEXC');
command varchar(200) const;
length packed(15:5) const;
END-PR;
// Global variable
//dcl-s respx varchar ...
**free
ctl-opt option(*srcstmt:*NODEBUGIO) dftactGrp(*no)
bnddir('HTTPAPI':'YAJL') DecEdit('0.');
/copy httpapi_h
/copy yajl_h
dcl-pr cmd extpgm('QCMDEXC');
command varchar(200) const;
length packed(15:5) const;
END-PR;
// Global variable
//dcl-s respx varchar ...
- Thu Feb 23, 2023 3:27 pm
- Forum: HTTPAPI
- Topic: Wrong response with HTTPAPI
- Replies: 6
- Views: 14739
Wrong response with HTTPAPI
Hi Everyone!
I'm looking for some help. I need to make an API call with a "GET" request.
RESPONSE = http_string('GET': url: request: 'application/json');
This API return me a PDF file in base64 format.
Everything works fine, but when I get the answer of the call, the response reverses the ...
I'm looking for some help. I need to make an API call with a "GET" request.
RESPONSE = http_string('GET': url: request: 'application/json');
This API return me a PDF file in base64 format.
Everything works fine, but when I get the answer of the call, the response reverses the ...