libcurl

Bucket creation in a location fails with <MalformedXML> error

I am using restAPIS, libcurl to talk to S3 cloud. I am trying to create a bucket with set to EU. Bucket creation fails with error. The xml body for bucket creation seems good, and the schema is good, when I compare it with the xsd file with the xmllint utility. Any clues would be of great help. Thanks, Ram ...

Sending form in libcurl

i need to send a file to a webserver using libcurl. i saw one of the examples in the curl website and am trying to implement it. it is the postit2.c example. can someone tell me how i might extend this to be able to send username and password as well ...

Handling responses in libcurl

i have a code to send a Form Post with login credentials to a webpage. it looks like this CURL *curl; CURLcode res; struct curl_httppost *formpost=NULL; struct curl_httppost *lastptr=NULL; struct curl_slist *headerlist=NULL; static const char buf[] = "Expect:"; curl_global_init(CURL_GLOBAL_ALL); /* Fill in the username ...

Setting existing cookies to use with libcurl

does current version of libcurl support firefox 3.0 and above cookies file (cookies.sqlite) ? I'm trying to set the file to allow cookies to be used when retrieving the data from web address. int return_val = curl_easy_setopt(hCurl, CURLOPT_COOKIEFILE, \..\cookies.sqlite); return_val is zero but i don't get to see the expected data. ...

How to get HTTP status message in (py)curl?

spending some time studying pycurl and libcurl documentation, i still can't find a (simple) way, how to get HTTP status message (reason-phrase) in pycurl. status code is easy: import pycurl import cStringIO curl = pycurl.Curl() buff = cStringIO.StringIO() curl.setopt(pycurl.URL, 'http://example.org') curl.setopt(pycurl.WRITEFUNCTION, ...

How do I test how my client program will react to a web server error?

I have a client program based on LibCurl. I have run into a situation where on some occasions a program on the server runs longer than the configured IIS timeout. IIS then terminates the program and returns a 502 error status to the client. I have added code to the client to capture this issue. Now, I need to find a way to prove that...

Can't Install libcurl PHP on Ubuntu Linux

I am trying to use the new facebook api and it requires libcurl PHP. I used sudo apt-get install php5-curl sudo apachectl -k restart And it didn't work. I get the same error and the phpinfo() page says nothing about libcurl. The source of this problem is probably that I built some of the tools from source (apache2, php), but the...

Help with cURL in Python

Hi, I have to POST a request to a server. In the API documentation of the website there is this example that uses cURL in PHP: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://api.website.com'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "request=$wrapper"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, ...

Symbol not found: _curl_easy_cleanup

I am working on porting a python application to Mac OS X. The application makes use of pycurl and PyCDF. When I run my code, I get this error : > File > "/Library/Python/2.5/site-packages/pycdf/pycdfext.py", > line 5, in <module> > import _pycdfext ImportError: dlopen(/Library/Python/2.5/site-packages/pycdf/_pycdfext.so, > 2): Symb...

How to properly encode this local file Uri with utf8 characters

I'm trying to have libcurl download a local file with this name: C:\Users\Lucas Meijer\Desktop\我能吞下玻璃而不傷.chinesefile But can't seem to be able to find the proper url encoded string that will make libcurl find this. ...

[C] hide curl_easy_perform

How can I hide curl_easy_perform output (in a shell)? This is in regards to a C application. ...

Timeout of curl_exec can terminate the script?

I am using PHP script for some backend tasks(not web) and I found sometime curl_exec will terminate the executing of script without outputing any errors. I want my script to run in a loop forever and any idea about this? ...

Problems uploading pictures to Facebook wall.

Hi, i'm trying to upload a JPEG picture to Facebook wall using libcurl. Appareantly the connection is established but cURL hangs when waiting for server response. The libcurl output is the following: About to connect() to api.facebook.com port 80 (#0) Trying 66.220.146.15... * connected Connected to api.facebook.com (66.220.146.15) po...

Any one liner code to find all info about libcurl support on a server?

Is there an equivalent to phpinfo() for libcurl? ...

Building cURL & libcurl with Visual Studio 2010

With the help of question #197444, I have managed to build cURL & libcurl from source on Windows from within the Visual Studio 2010 IDE, OpenSSL 1.0.0, and zlib 1.2.5. The problem I see is that at the moment, if I run the resulting curl.exe with the argument -V, then the version that it report is curl 7.20.1 (i386-pc-win32) libcurl/7.20...

Can you use PHP libcurl to pull files from server A to server B?

Hi, cURL and libcurl let you do things you normally do with a browser, right? Like, as if you have a jini sit inside a server and fire up a browser and do stuff. Ok then. I need a script to sit on server B, and click on download links on a server A and download files (from server A to server B). I am new to curl, and not sure if all I...

Using libcurl & SSL

Hi there. I've found there is really very little information around on this topic. I already have a dll making successful posts using libcurl. I've compiled libcurl with openssl for ssl functionality. Here is an exert of my original curl setup. curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer); //curl_easy_setopt(c...

SSL certificates with libcurl and FileZilla

I am trying to use libcurl to talk to a test server (FileZilla) using FTPS. Everything works if I disable the certificate validation, but I would like to understand what the problem is with the certificate validation. I used FileZilla to generate its own certificate, which I assume is self-signed and is not related to any certificate au...

How to install curl on windows for ruby on rails

Hi, I am new to ruby on rails. Could you please help me to install curl. I have windows 7 and ruby 1.8.7 I need to install Paul Dix's FeedZirra. I need curl for that. Also could you help me with gem install curb. Even curb seems to need Curl Looking forward for your help Thank You Gautam ...

realloc(): invalid next size

I'm having a problem with the realloc function. I'm using C only (so no vector) with LibCurl. The problem I'm having is that I'm getting the following error (realloc(): invalid next size) on the 12th iteration of the write_data function (the function I pass to Curl as a callback, it is called each time libcurl has some data to pass back ...