curl

How to curl or wget a web page?

I would like to make a nightly cron job that fetches my stackoverflow page and diffs it from the previous day's page, so I can see a change summary of my questions, answers, ranking, etc. Unfortunately, I couldn't get the right set of cookies, etc, to make this work. Any ideas? Also, when the beta is finished, will my status page be a...

PHP / cURL on Windows install: "The specified module could not be found."

I'm running PHP 5.2.3 on Windows 2000 Server with IIS 5. I'm trying to get cURL working, so in my php.ini file, I have this line: extension_dir ="F:\PHP\ext" And later, I have: extension=php_curl.dll The file F:\PHP\ext\php_curl.dll exists, but when I try to run any PHP script, I get this in the error log: PHP Warning: PHP Startup...

cURL adding whitespace to post content?

I am attempting to POST against a vendor's server using PHP 5.2 with cURL. I'm reading in an XML document to post against their server and then reading in a response: $request = trim(file_get_contents('test.xml')); $curlHandle = curl_init($servletURL); curl_setopt($curlHandle, CURLOPT_POST, TRUE); curl_setopt($curlHandle, CURLOPT_POSTFI...

Passing $_POST values with cURL

How do you pass $_POST values to a page using cURL? ...

What is cURL good for ?

What's the single best use you've put cURL to ? ...

Curl command line for consuming webServices?

Do you guys know how I can use the Curl command line to POST SOAP to test a web service? I have a file (soap.xml) which has all the soap message attached to it I just don't seem to be able to properly post it. Thanks! ...

is there a curl/wget option that says not to save files upon http errors?

I want to download a lot of urls in a script but I do not want to save the ones that lead to HTTP errors. as far as I read in the man they both don't provide such functionality. does anyone know about another downloader who does? ...

cURL in PHP returns different data in _FILE and _RETURNTRANSFER

I have noticed that cURL in PHP returns different data when told to output to a file via CURLOPT_FILE as it does when told to send the output to a string via CURLOPT_RETURNTRANSFER. _RETURNTRANSFER seems to strip newlines and extra white space as if parsing it for display as standard HTML code. _FILE on the other hand preserves the fil...

PHP :: Emulate <form method="post">, forwarding user to page

Hi, I'm working on a PHP application that links into the Protx VSP Direct payment gateway. To handle "3D Secure" requests from the credit card processing company, I need to forward the user to a different website, mimicking a form that has been posted. I'm trying to use the cURL libraries, but seem to have hit a problem. My code is the f...

cURL equivalent in JAVA

I am tasked with writing an authentication component for an open source JAVA app. We have an in-house authentication widget that uses https. I have some example php code that accesses the widget which uses cURL to handle the transfer. My question is whether or not there is a port of cURL to JAVA, or better yet, what base package wil...

"CURLE_OUT_OF_MEMORY" error when posting via https

I am attempting to write an application that uses libCurl to post soap requests to a secure web service. This windows application is built against libCurl version 7.19.0 which, in turn, is built against openssl-0.9.8i. The pertinent curl related code follows: FILE *input_file = fopen(current->post_file_name.c_str(), "rb"); FILE *out...

How to install PHP/CURL?

I tried to follow PHP.net curl site and even this link: http://curl.phptrack.com/forum/viewtopic.php?t=52 and try to install the CURL in my window laptop. It doesn't work.. CURL is not installed. I wonder do I need to run it on windows server... Anyone has good sites guiding me how to install CURL? thanks. ...

php cURL iis 6.0 windows server 2003

having issue setting up cURL with iis 6.0, windows server 2003, php 5.2.6 have installed to C:\PHP set PHPRC = C:\PHP\php.ini copied ssleay32.dll andlibeay32.dll to C:\PHP in php.ini, uncommented the line extension=php_curl.dll extension_dir="C:\PHP\ext" c:\php\ext has the dll php_curl.dll EDIT 1: C:\PHP is in PATH still getting...

How do I install cURL on Windows?

Hi, I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get the PHP5 packages and get the CURL packages. I run the apache and run a PHP script. no problem. but when I run the php script with curl, it fails. It returns: Call to undefined fun...

Building libcurl with SSL support on Windows

Hi, I'm using libcurl in a Win32 C++ application. I have the curllib.vcproj project added to my solution and set my other projects to depend on it. How do I build it with SSL support enabled? ...

How to manage a simple PHP session using C++ cURL (libcurl)

I'm writing a C++ client which is using libcurl for communicating with a PHP script. The communication should be session based, and thus the first task is to login and make the PHP script set up a session. I'm not used to working with sessions either from C++ or PHP. I basically know that it has to do with cookies and communicating ses...

PHP4: Send XML over HTTPS/POST via cURL?

I wrote a class/function to send xml over https via PHP4/cURL, just wondering if this is the correct approach, or if there's a better one. Note that PHP5 is not an option at present. /** * Send XML via http(s) post * * curl --header "Content-Type: text/xml" --data "<?xml version="1.0"?>...." http://www.foo.com/ * */ function sendX...

PHP: how to save cookies for remote web pages ?

Hiya - I've got a PHP application which needs to grab the contents from another web page, and the web page I'm reading needs a cookie. I've found info on how to make this call once i have the cookie ( http://groups.google.com/group/comp.lang.php/msg/4f618114ab15ae2a ), however I've no idea how to generate the cookie, or how / where the ...

What $_POST[] do i need to post to a forum?

Hi! I am admin on a forum. Earlier we had phpbb 2.0 and i made a bot that could write to the forum. Now, we have upgraded the forum to phpbb 3.0, but i can't get my bot to write to the forum anymore. I have looked for a solution, but now i am out of ideas. So it would have been great if anyone have a suggestion. i have btw used CURL a...

Why does session_start cause a timeout when one script calls another script using curl

I have two PHP scripts, both using the same session by calling session_name('MySessID'). When the first script calls the second script using curl, the second script hangs when session_start() is called. Why would this happend? ...