libcurl

How to cache SSL client certificate password in client application using libcurl

We have a (multi-os) application which communicates with a https server using libcurl and uses SSL client certification. When the client certification is password protected, the application must ask the user to input password. The application sends hundreds of different https request to the server, so we can not ask the user to input pas...

Cross platform c++ with libcurl

Hi, I am a perl developer that has never went into the client side programming of things. I'd like to think that I'm a pretty good developer, except I know that my severe lack of knowledge of the way desktop programming really takes away from my credibility. That said, I really want to get into doing some desktop applications. I want...

Building libcurl library in c++, Noob Question

I wanna write a little c++ program using libcurl. It's for a school project so I need to be able to package everything in a zip file and email it to my instructor. I've just downloaded the tar from the libcurl website but now I'm not sure what the next step is... What else do I gotta do in order to be able to do #include "curl/curl.h" an...

PHP cURL multiple calls vs simplexml_load_file

If i am making multiple calls to an api on each page in a web app, is cURL right for me, or is using simplexml_load_file with the URL wrapper OK? Will opening, making the call, and closing the cURL connection multiple times negatively affect the app? ...

Create Bucket , upload files using libcurl in c++

Hi, I want to know that how can i create a bucket on aws(amazon web service) and how can i upload xml file on my bucket ? if you provide me some sample code it helpful for me . thanks, ...

Can a cURL based HTTP request imitate a browser based request completely ?

Hello Experts, This is a two part question. Q1: Can cURL based request 100% imitate a browser based request? Q2: If yes, what all options should be set. If not what extra does the browser do that cannot bee imitated by cURL? I have a website and I see thousands of request being made from a single IP in a very short time. These reque...

Custom cocoa installers and application dependencies.

I am working on a Cocoa application that uses FTP and SFTP transfers, and the best way I've found to accomplish this is by using libcurl. Now I'm pretty sure that Mac OS X does not ship with libcurl installed, and even if it did it most likely wasn't built with libssh, which I would also need. The only solution I can come up with in my...

CURL with PHP - Very slow

All, I have to request a URL which returns a JSON request. I am using PHP and CURL to do this. Currently it takes around 3-4 seconds for the request and response. Following is the curl code $ch = curl_init(); $devnull = fopen('/tmp/curlcookie.txt', 'w'); curl_setopt($ch, CURLOPT_STDERR, $devnull); curl_setopt($ch, CU...

libcurl and mkdir

Hello, I need to use libcurl for creating a folder in my home directory. I use the following set of code for this: struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "mkdir MyFolder"); curl_easy_setopt(curl, CURLOPT_QUOTE, headers); I have given the ftp server-path, user name, password. But, I get the error '5...

Trouble with pycurl.POSTFIELDS

I'm familiar with CURL in PHP but am using it for the first time in Python with pycurl. I keep getting the error: Exception Type: error Exception Value: (2, '') I have no idea what this could mean. Here is my code: data = {'cmd': '_notify-synch', 'tx': str(request.GET.get('tx')), 'at': paypal_pdt_test ...

Download problem with libcurl after connection loss

How can I cancel the curl_easy_perform() function after a connection loss (Network cable drawn)? I'm using the the function to download files from a server via http request under Mac OS X. After the connection gets lost the application hangs in curl_perform. I've tried to solve the problem by using the CURLOPT_TIMEOUT option. But this ...

executing php cURL script for long time without changing php.ini settings

Scenario I have a old blog on blogger that contains thousands of images and posts, i have already imported the posts from blogger to wordpress using their import service (which does not import images) now i want to write a php cURL script that will download all the images off my old blogger blog to wordpress. Problem I have already w...

Posting an array with curl_setopt

Hi, The attached code is returning "Notice: Array to string conversion in...". Simply my array is being handled to the remote server as a string containing "Array" word. the rest of the variables are fine. How can I pass my array ($anarray) without this problem? Thanks. <?php $data = array( 'anarray' => $anarray, 'var1' => ...

Downloading all files in directory using libcurl

Hi, I am new to the libcurl and found a way to download a single file from the ftp server. Now my requirement is to download all files in a directory and i guess it was not supported by libcurl. Kindly suggest on libcurl how to download all files in directory or is there any other library similar to libcurl? Thanks in advance. ...

Parse html page source with libcurl and C

How can I print the source of a webpage, specified in curl_easy_setopt, without html tags? So, printing only the text in the source? ...

How do I CURL www.google.com - it keeps redirecting me to .co.uk

I am using CURL to check for the existence of a URL (HEAD request) but when I test it with www.google.com, it redirects me to www.google.co.uk - probably because my server is UK-based. Is there a way you can stop this from happening? I don't want to remove the CURLOPT_FOLLOWLOCATION option as this is useful for 301 redirects etc. Part...

Sending POST Requests without waiting for response?

I am writing a simple REST service, which responds to requests from clients. All in PHP. My concern is, that when my server responds to a request, it could end up tying up resources if the client side is too slow in sending back "ok" response. How do I send a POST request via lib_curl setting it to not wait for any responses, but rathe...

How to limit concurrent connections used by cURL

I made a simple web crawler using PHP (and cURL). It parses rougly 60 000 html pages and retreive product information (it's a tool on an intranet). My main concern is the concurrent connection. I would like to limit the number of connection, so whatever happens, the crawler would never use more than 15 concurrent connections. The serv...

pycurl install :( already have min. libcurl version

I'm running python 2.6 on an Intel Mac OS X 10.5 I'm trying to install pycurl 7.16.2.1 (as recommended here http://curl.haxx.se/mail/curlpython-2009-03/0009.html), but for some reason, the installation sees my libcurl 7.16.3, yet it still insist I install 7.16.2 or greater (doesn't 7.16.3 satisfy that?) Here's the error output: Runnin...

cURL - "hanging" socket connection on Linux

...