cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: compressed POST request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 May 2011 16:28:55 +0200 (CEST)

On Tue, 3 May 2011, Andrej van der Zee wrote:

>> $ 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.

As I explained, the compression is not really HTTP at all so what the server
expects or desires is left for you to figure out and provide.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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