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 14:20:40 +0200 (CEST)

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

> curl -d @request.xml -H "content-type: application/octet-stream"
> localhost/cgi-bin/xxx.cgi
>
> Is it possible to send request.xml compressed? How should I do this? I
> am using Ubuntu Maverick.

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

... there's no way to automatically do compression of HTTP requests.

-- 
  / 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