curl-users
CURL changes a byte to NULL when sending the request to a remote server
Date: Mon, 28 Apr 2008 07:44:32 +0300
Hi,
I am using curl 7.10.6-4.1 to send HTTP POST request.
The body of the request is larger than 14 MB.
The content type of the request is multipart/byteranges.
I found a strange behavior when sending the request to a remote server:
* When the server is local, the request is sent by chunks of 16384
bytes.
* When the server is remote (on another machine), the first chunk
is of size 13032 B. The first byte in the second chunk (meaning, the
13033 byte) is changed to NULL (00). The second chunk is of size 4800.
The next chunks are 16384 B.
Is there a way to control the body of the chunks the curl sends? Is
there a way to prevent the curl from cutting the request to several
chunks?
Why is the 13033 byte changes to NULL?
Thanks,
Rotem.
Received on 2008-04-28