[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web Service that requires XML document in HTTP Header



Hi Nick,

How big do you need your additional header to be?

Just in case it's not clear -- it's possible to call the SendReq() 
procedure twice, three times, etc, until you've sent your whole request. 
  Right now, the code sends it all at once, but that's not actually 
required, it can send it piece-by-piece if you want it to.... the data 
all gets appended together in the socket, anyway.

The server keeps receiving data (no matter how many times you call 
SendReq to send it) until it receives 4 consecutive bytes containing 
x'0d0a0d0a'.  (x'0d0a' is the ASCII representation of CRLF).    So feel 
free to call SendReq multiple times to send the whole string, as long as 
you only send the extra CRLF on the last call to SendReq().


Nick Townsend wrote:
> Looking at the API code it seems that the actual restriction on the
> size of the header field is actually less than 32,767 bytes because it
> has to fit into field wwReqChain along with all the other headers, and
> wwReqChain itself has a maximum length of 32,767 bytes (presumably the
> HTTPAPI code is limited to 32,767 rather than 65,535 for backwards
> compatibility with earlier compiler releases). I'm going to have to
> work out whether this is a feasible solution for us because of this
> restriction.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------