cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: compressed POST request

From: Andrej van der Zee <andrejvanderzee_at_gmail.com>
Date: Tue, 3 May 2011 21:57:26 +0900

Thanks for your reply.

>>
> $ gzip request.xml
> $ curl -d @request.xml.gz -H "content-type: application/octet-stream localhost/cgi-bin/xxx.cgi

I think gzip writes headers about the file in the gz-file. The cgi-app does not expect these headers and fails on it, it seems.

I guess I will have to write a small program with libcurl and zlib, as I cannot find any option in gzip to remove the headers.

Cheers,
Andrej
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-03