curl

500 Internal Server error when using curl on an aspx page with SSL

I'm trying to access an aspx webpage using curl but it returns 500 internal server error. It doesn't require any credentials or POST variables I know of, but I think I'm missing something, because when I try to access it from my browser, it does work. The page is just a form with two fields to be filled and POSTed. curl -L https://my.we...

PHP cURL getting encoded data

I have downloaded page header and compressed body in one string by using cURL, problem is that I don't know how to split them from each other and how to decompress body? Thank you! ...

non-blocking requests with php and curl not working with sleep

Hey dear stackoverflow members, I have set up a small script to use the known cUrl feature of curl_multi_* code to provide asynchronous non-blocking requests , this is a rough version of the code: $mch = curl_multi_init(); $ch = curl_init(); url_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); cu...

PHP and cURL cookies

I am trying to setup a php page which uses cURL to hit a third party server to log them in. Right now my code does successfully log in to the third party server, but since cURL is not sending the SESSION cookies to the user, the user must login in themselves How can I get cURL to forward cookies to the client. Thanks ...

iPhone Curl Left and Curl Right transitions

I am looking for a way to do a UIViewAnimationTransitionCurlUp or UIViewAnimationTransitionCurlDown transition on the iPhone but instead of top to bottom, do it from the left to right (or top/bottom in landscape mode). I've seen this asked aroud the internet a few times but none sems to get an answer. However I feel this is doable. I ha...

cURL problem fetching binary data via HTTPS

Hi everyone, I need to fetch images for one of my projects via https connection. I use Snoopy PHP class as HTTP server. This class uses cURL program for performing https requests, I mean it calls cURL directly using system() PHP function. The problem is that I get images broken. When I fetch HTML pages through secure connection, everythi...

Storing data of unknown size in C++

Hi, I've been using PHP for about 4 years, however I've come across a problem that requires something with slightly (:P) better performance and so I've chosen C++. The program I'm writing is a Linux daemon that will scan a MySql database for URL's to load, load them using cURL, search for a specified string, and then update the databas...

How do I make a check point for my script? And....

Okay, so I am basically making a script to pass post data using cURL. Using my previous example in another question, I will be passing my ever growing list of phone numbers. However, I can only submit 20 phone numbers a day at the max. So how can I make a check point for my script to find out where it last stopped (which phone number was...

iPhone > Submitting a web form, handle cookies..

Hey all, I'm not at all sure where to get started with the following. Bascially the scenario Is, from my iPhone app I want to be able to login to a web form (via username/password combo) and perform another action. I want the process to be able to handle session persistence via cookies. My first thoughts were to look at going down the ...

How do you past post data without the name value for inputs?

passing post data using cURL requires that the name of the input. However, I was wondering how can you do it if the input was not assigned a name? curl -d "user=foobar&pass=12345&id=blablabla&ding=submit" http://www.formpost.com/getthis/post.cgi ...

Using PHP cURL with an HTTP Debugging Proxy

I'm using the app "Fiddler" to debug a GET attempt to a website via PHP cURL. In order to see the cURL traffic I had to specify that the cURL connection use the Fiddler proxy (see code below). $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888'); curl_setopt($ch, CURLOPT_...

If libcurl is enabled, can i assume that all setopt options are available?

If server has php libcurl enabled, does it have all setopt options available (unless something new was added in new libcurl version and server didn't upgraded, of course) or is it possible for admins to turn off parts of functionality? I'm especially thinking about CURLOPT_HTTPHEADER - can i assume that if i'll be running my script on s...

cURL help with PHP

I am playing with cURL, and I am having trouble getting it to work. I want the cURL script to post the data on that form so I can see the posted data in results.txt. Here is my form script and then my cURL script after. I changed the $url before posting here. Edit: The problem is, it's not posting the data. I ran the cURL script, and ch...

curl not storing cookies

I'm building a web bot to login into some of my accounts on websites but one of the url's are sending cookie from javascript and curl is unable to store them. Any suggestion? ...

Is there a PHP library equivalent to cURL that does not need to be installed?

I am trying to proxy through php for a JS RSS feed. The company I am doing this for may or may not want cURL installed. If that is the case I may need some sort of library that can simply be included in php rather than go through apache and all of that. Is there a library that can handle something like that? What other options do I have ...

Help with cURL + PHP?

I am a novice programmer at best, but I am trying to play a prank on a friend. Basically, there is a url shortener that he is using to redirect to a rickroll page, and the url shortener has a statistics page. I want to mass request the url to make the statistics go up to a ridiculously high number. I've written a PHP script that should ...

Replacing Do ... While Loops

I have the following piece of code taken from the PHP manual on the curl_multi_* entries: $active = null; do { $process = curl_multi_exec($curl, $active); } while ($process === CURLM_CALL_MULTI_PERFORM); while (($active >= 1) && ($process === CURLM_OK)) { if (curl_multi_select($curl, 3) != -1) { do { $process = ...

PHP cURL: How do I make it visit this website before continuing?

I am passing post data to a website, but I have to visit the homepage first before I can navigate to any other parts of the website. So how can I do that? Do I just use a header redirect and then have it execute the rest of the cURL? Update: I think this might be better than the solution below: http://coderscult.com/php/php-curl/2008/05...

Partial page curl animation

I have a working transition using UIViewAnimationTransitionCurlUp however, I would like the animation to stop halfway through, much like the Maps application...Any thoughts on how to achieve this? ...

commandline / cron curl Facebook RSS feed.

I'm trying to setup a cron job which regularly poles my Facebook notification RSS feed and then fires off the latest change to my iPhone as push message using Prowl. I've already managed an identical task with a quote-of-the-day RSS feed, however my Facebook RSS feed always 302 redirects me to a "incompatible web browser." http://www.fa...