Search found 6 matches

by belstsrv
Wed Jun 21, 2023 6:52 pm
Forum: HTTPAPI
Topic: http_req with POST and large string
Replies: 10
Views: 24526

Re: http_req with POST and large string

Thank you for your help!

The file I was reading in to a variable was in fact being truncated upstream of HTTPAPI which caused the issue. I had to re-write some code that had a 65K limitation on it and everything is now working as desired.

Thanks again!
by belstsrv
Wed Jun 21, 2023 3:13 pm
Forum: HTTPAPI
Topic: http_req with POST and large string
Replies: 10
Views: 24526

Re: http_req with POST and large string

tools400 wrote: Wed Jun 21, 2023 12:58 pm Did you already check the value of SendLen when calling http_persist_req() from http_req()?

And what about wwUplLen when calling do_oper() from http_persist_req().

If these value are correct, I would go further down the chain.
SendLen at the call to http_persist_req() from http_req() is 65654
by belstsrv
Wed Jun 21, 2023 12:47 pm
Forum: HTTPAPI
Topic: http_req with POST and large string
Replies: 10
Views: 24526

Re: http_req with POST and large string

Yes, sort of. I had to add logging to this process as we did not have it before. It shows this: There are 0 cookies in the cache POST /m1auth/v9auth.php HTTP/1.1 Host: authhost.domain.com User-Agent: http-api/1.45 Content-Type: application/x-www-form-urlencoded Content-Length: 65654 I can also see t...
by belstsrv
Tue Jun 20, 2023 8:59 pm
Forum: HTTPAPI
Topic: http_req with POST and large string
Replies: 10
Views: 24526

Re: http_req with POST and large string

I just updated to the latest version of HTTPAPI and it did not correct the issue.
by belstsrv
Tue Jun 20, 2023 8:26 pm
Forum: HTTPAPI
Topic: http_req with POST and large string
Replies: 10
Views: 24526

Re: http_req with POST and large string

Code: Select all


** my program **
D formData        s               a   len(16000000) varying 

** HTTPAPI **
D   SendStr                       a   len(16000000) varying const      
D                                     options(*varsize:*omit:*nopass)  
This matches the same variable in the HTTPAPI.
by belstsrv
Tue Jun 20, 2023 7:21 pm
Forum: HTTPAPI
Topic: http_req with POST and large string
Replies: 10
Views: 24526

http_req with POST and large string

Hello, I am trying to send a large string using http_req but the receiving side is only getting 64K of the string. Using the same string in Postman results in the whole string arriving OK. My HTTPAPI version is 1.42. My code snippets are below. The large variable is "body" and is defined a...