cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Plz help me posting data to a url

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 8 Jun 2005 08:33:26 +0200 (CEST)

On Wed, 8 Jun 2005, kl rao wrote:

> I just have started using libcurl C api.

Then consider using the curl-library mailing list instead for things like
this!

> The following code returning an error: Invalid Content-Type.

That "returning" is contents from the server, and we cannot know why your
server responds so.

You got that sent to stdout since you didn't set any write callback or
CURLOPT_WRITEDATA.

> curl_easy_setopt(curls,
> CURLOPT_POSTFIELDS,mob);
> curl_easy_setopt(curls,
> CURLOPT_POSTFIELDS,txt);

The second call will override what you set in the previous one. You can only
set one CURLOPT_POSTFIELDS.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-06-08

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET