[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Server response includes extra CRLF - how to strip them out?
Turns out it's just an extra LF...
Wish %XLATE took an endpos parameter in addition to the startpos...
On Mon, Apr 14, 2014 at 3:40 PM, Charles Wilt
<[1]charles.wilt@xxxxxxxxx> wrote:
should have been "subtract 2" :)
But I'd rather be able to handle it if they drop the extra CRLF or even
add more.
Charles
On Mon, Apr 14, 2014 at 2:57 PM, Charles Wilt
<[2]charles.wilt@xxxxxxxxx> wrote:
All,
I'm using the�http_url_post_raw2() procedure and the server response
includes an extra CRLF..
The debug log shows:
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 10
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
0000003|2
http_close(): entered
Now I suppose I could simply subtract 1 from my returned data length...
� � � � �if retlen > 1;
� � � � � �http_xlate(retlen: retdata: TO_EBCDIC);
But if they ever get rid of the extra CRLF, I'd be in trouble. � Looking for recommendations on how to strip the CRLF..either in my
"Incoming" procedure or before/after the call to http_xlate().
Thanks!
Charles
References
1. mailto:charles.wilt@xxxxxxxxx
2. mailto:charles.wilt@xxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------