Here's part of the log of a failed try:
Code: Select all
do_oper(GET): entered
There are 1 cookies in the cache
GET /rest/api/v1/File/13/101014 HTTP/1.1
Host: ???????????????????
User-Agent: http-api/1.38
Cookie: $Version=0; .X10Gateway.Session=????????????????????
Authorization:Bearer ?????????????????????????????????????
recvresp(): entered
HTTP/1.1 200 OK
Content-Length: 24455627
Content-Type: application/pdf
Content-Disposition: attachment; filename="page.pdf"
api-supported-versions: 1.0
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Date: Thu, 09 Nov 2023 13:57:50 GMT
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 24455627
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
recvdoc(): Receiving 24455627 bytes.
Code: Select all
do_oper(GET): entered
There are 1 cookies in the cache
GET /rest/api/v1/File/13/101014 HTTP/1.1
Host: ????????????????????
User-Agent: http-api/1.38
Cookie: $Version=0; .X10Gateway.Session=??????????????
Authorization:Bearer ??????????????????
recvresp(): entered
HTTP/1.1 200 OK
Content-Length: 24455627
Content-Type: application/pdf
Content-Disposition: attachment; filename="page.pdf"
api-supported-versions: 1.0
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Date: Thu, 09 Nov 2023 14:37:18 GMT
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 24455627
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
recvdoc(): Receiving 24455627 bytes.
Frankly, I can't see any difference. Even in the successful try I can see the line SetError() #0: , but I still get a complete file. In the unsuccessful tries I get a partial file.
I have a few questions:
- Is this related to HTTPAPI or is this caused by the host?
- Is this a known issue that is solved in newer versions of HTTPAPI?
- Is there something I can do in my RPG-code?
I would really appreciate it if you can help!
Thanks,
Annemiek.