cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: message body in HEAD request

From: VitaliyZ <vitaliy.zhebrakovskiy_at_comodo.od.ua>
Date: Fri, 25 Dec 2009 11:36:46 +0200

On Wed, 23 Dec 2009 21:00:31 +0200, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 23 Dec 2009, VitaliyZ wrote:
>
>> I'd like to know is there any way to attach message body to GET
>> request? I don't mean this
>> curl -G -d @message_body http://my.server.com
>> as I need to keep URL intact but attach data after headers.
>
> How about:
>
> curl -d @message -X GET http://my.server.com
>

It works!
Thanks for your time!

Best regards,
Vitaliy.
-------------------------------------------------------------------
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 2009-12-25