cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: RE: what does curl post

From: Gary Maxwell <gmaxwell_at_broadsoft.com>
Date: Sat, 27 Oct 2012 01:23:41 +0000

> From:fancy_2626
> Sent: Friday, October 26, 2012 18:24
> Subject: Re: RE: what does curl post
>
> Hello! I still need help to make my post work.
>
> microRNAs=hsa-miR-
> 9&Genes=NM_001004317ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
> ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
> ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
> ÍÍÍÍýýýý««««««««îþ
>
>
> int main(void) {
> int len;
> CURL *curl;
> CURLcode res;
> static char *postthis="microRNAs=hsa-miR-9&Genes=NM_001004317";

> curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, len);

I would try the following:

curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)len);

Read the documentation for curl_easy_setopt() to see why.
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

You should also check the status returns from all of your curl calls.

Cheers,

GaryM @ Broadsoft

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-27