cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: post binary data using curlopt_postfields option

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Jun 2010 18:55:02 +0200 (CEST)

On Wed, 9 Jun 2010, Vemana Yogi wrote:

> I pasted the response part, I meant to paste the below, where no
> content-type is sent.

For a normal CURLOPT_POSTFIELDS, libcurl does send a content-type though. If
you did not get one, you've fiddled with it somehow.

> POST /v1/test/123455 HTTP/1.1
> Host: value:port
> Accept: */*
> Content-Length: 0

This says there's no Content-Length which is a bit suspicious as well. Are you
possibly using a specific authentication method?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-09