libcurl

using Libcurl on Visual Studio

Not really a programming question but I am having trouble getting Libcurl to install. I tried this "visual_studio.pdf" guide but its 7 years old and when I build the initial file I don't get a library file. Thanks ...

Persistent/keepalive HTTP with the PHP Curl library?

I'm using a simple PHP library to add documents to a SOLR index, via HTTP. There are 3 servers involved, currently: The PHP box running the indexing job A database box holding the data being indexed The solr box. At 80 documents/sec (out of 1 million docs), I'm noticing an unusually high interrupt rate on the network interfaces on...

Problem with libcurl cookie engine

[Cross-posted from lib-curl mailing list] I have a single threaded app (MSVC C++ 2005) build against a static LIBCURL 7.19.4 A test application connects to an in house server & performs a bespoke authentication process that includes posting a couple of forms, and when this succeeds creates a new resource (POST) and then updates the re...

Install pyCurl in ActivePython-2.6?

I have worked with pyCurl in the past and have it working with my system default python install. However, I have a project that requires python to be more portable and I am using ActivePython-2.6. I have had no problems installing any other modules so far, but am getting errors installing pyCurl. The error: Searching for pycurl Readi...

On Cygwin, how do I install curl from hackage?

From a Windows command prompt, c:\>cabal install curl Resolving dependencies... Configuring curl-1.3.5... cabal: Error: some packages failed to install: curl-1.3.5 failed during the configure step. The exception was: sh: runGenProcess: does not exist (No such file or directory) I have installed Cygwin's curl-devel package, but from a C...

How do I write a simple PHP transparent proxy?

I need to make a proxy script that can access a page hidden behind a login screen. I do not need the proxy to "simulate" logging in, instead the login page HTML should be displayed to the user normally, and all the cookies and HTTP GET/POST data to flow through the proxy to the server, so the login should be authentic. I don't want the ...

Why can't Python find shared objects that are in directories in sys.path?

I'm trying to import pycurl: $ python -c "import pycurl" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: libcurl.so.4: cannot open shared object file: No such file or directory Now, libcurl.so.4 is in /usr/local/lib. As you can see, this is in sys.path: $ python -c "import sys; print sys.path" [''...

How do you get libcurl libraries to work with InstantRails?

I'm working on a windows machine and trying to get the curb plugin to work, first thing I realized was I needed the curl library installed on my machine, so that's what I'm looking to do. I simply downloaded a curl library, a curllib library, and have them located at c:/curl and c:/curllib respectively. I setup my environmental variabl...

Linking libcURL in Visual Studio 2008 Express

Hello everybody, my first question here: I am having trouble using libcURL in a c++ project. I don't even get it linked. I am using Windows XP and Visual C++ 2008 Express Edition. So here is what I did: Downloaded libcURL: curl-7.19.5-devel-mingw32.zip Opened new commandline project in VC++ Include folders 'lib' and 'include' to my n...

Can't get cookies with php curl from www.dramexchange.com

I can get cookie from the others but not from this site www.dramexchange.com? Anybody know why? Maybe someone can do it with php and curl? :> $ch = curl_init(); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookieFileName"); curl_setopt($ch, CURLOPT_URL,"http://www.dramexchange.com"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); ob_start(); ...

How to set a timeout on PHP5 curl calls? Published CURL options do not seem to work...

We've written a script that pulls data from an external server. If the server goes down we don't want our server waiting for the data since we process a lot of data and we don't want it bogged down. To address this, we're trying to timeout our curl calls if they take more than a couple hundred milliseconds. I found some documentatio...

why use curl instead off other methods

Hello, I would like to know why it is better to use curl instead off other methods like $ret=file($url) in php. This is actually used to access an http api for an sms gateway/ Someone dropped a "I would recommend using curl for http connections", but I don't know why I just read that it is neccasary for paypal payments, so that does ...

php libcurl alternative

Are there any alternatives to using curl on hosts that have curl disabled? ...

Need help with libcurl username/password authentication.

I'm trying to access a secure webpage on one of our servers. The webpage is inside a .htaccess protected directory that requires a username and password. I'm trying to get libcurl to submit the authentication request so it can access the file. After finding some guidance in various places, I've come up with what I believe should work,...

Php Curl multiple request problem

Hi, I am having a problem using the curl lib with php. What I want to accomplish is to make multiple request pulling xml returned from two different url's that are called with curl. Here is the code: $BROWSER="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 YFF3 Firefox/3.0.1"; $ch = curl_init(); curl_seto...

LibCurl Unicode data

Hello! I'm writing an application, and I'm currently using libcurl. The libcurl callback function works fine when I implement it for the Ansi charset, but I fail to get it working when working with Unicode characters. int CURLConnectorAnsi::BufferWriter(char* data, size_t size, size_t nmemb, std::string* buffer) { int ReadBytes = 0...

Weird libcurl error in PHP (Failed to connect to IPHERE: Unknown error 22)

Hi, I was finishing my script and suddenly libcurl stopped working. I thought the server I was connecting to was down or something, but invariably of where I try to connect I get the same sucky error. I even tried rebooting my box, same results. The code snippet where things happen is: public function navigate(array $data) { ...

How do i get wp nonce value for my php libcurl script

I'd like to automate some administrative task for myself on my wpmu install. For example, I'm trying to write php curl script for logging in and adding a new blog. So i'm already logged in via curl and now i want to post form that's in wpmu-blogs.php but it has hidden wp nonce field. How do i get this value into variable? I checked sourc...

Problem with CURL (Multi)

I'm having a problem with curl_multi_*, I want to create a class / function that receives, lets say 1000 URLs, and processes all those URLs 5 at a time, so when a URL finishes downloading it will allocate the now available slot to a new URL that hasn't been processed yet. I've seen some implementations of curl_multi, but none of them al...

How to extract value from hidden field on form

I have form (on my own blog/cms install which i want to play with a bit) with hidden value which i want to extract. Problem is that there are 2 forms on that page, each with that hidden field with value. On each form field name is the same, only hidden value differs. Something like this: <input type="hidden" id="_hiddenname" name="_hidd...