views:

1332

answers:

16

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

+2  A: 

Most of my eCommerce plug-ins use CURL to post the CC info to the provider, over SSH.

Unkwntech
Which one(s) do you use? How are the prices?? I posted something and never got a decent answer. http://stackoverflow.com/questions/53444/donation-services
nlucaroni
A: 

From some cURL documentation:

curl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer resume and more.

bryanpearson
+2  A: 

We use libcurl for almost all HTTP client access in our C application. For command-line use, I've never had any reason to abandon wget.

che
A: 

Note that vanilla cURL on Windows (last time I checked, anyway) is in the habit of using the very risky call TerminateThread() to deal with stalled connections, which can wind up killing threads while they are holding an important critical section and deadlocking the rest of your program. On Windows, build cURL with c-ares to avoid this.

Slothman
+1  A: 

I've hooked it up to a scheduler to do HTTP posts to a legacy ASP web site. It was a 3rd party portal that would take a very long time to load when the site was idle for a period of time. Since I didn't have access to the source and the company was no longer around this was a quick and dirty solution that kept the site running for quite some time.

SaaS Developer
A: 

curl can easily get the public IP info from http://whatismyip.com/automation/n09230945.asp and show it to you on the command line. I also use it to test form POST data on some systems without having to type stuff on a webpage.

Chochos
A: 

I use cURL for automating tasks on web applications where I don't have access to cron. I set up a cron task on a machine I do have access to that hits a URL to run a scheduled job.

+2  A: 

I use it as an ad-hoc test harness for RESTful web services.

Hank Gay
+2  A: 

I used it the Asterisk dialplan. You can Curl Servlets so your dialplan reacts to your website and ultimately java objects.

Also use it in bash scripts where the strip can "ask" a webpage for values. Curl its great!

JorgeO
cURL rocks with Asterisk. I actually added the patch for the POST data option that is in func_curl for Asterisk
0A0D
Awesome, I havent yet program a funtion in asterisk. I posted a question I believe you could easily respond please checkout http://stackoverflow.com/questions/1924982/replace-characters-in-asterisk-dialplan
JorgeO
+2  A: 

Twittering

Adrian Archer
This doesn't work anymore, you have to do a bit more work like here: http://www.barattalo.it/2010/09/09/how-to-change-twitter-status-with-php-and-curl-without-oauth/
Pons
A: 

I use it to develop programs that login to a site and do automated stuff, like remotely adding a comment to some site, etc.

But there are a lot more uses for it.

Daniel S
A: 

With PHP, I've used cURL for creating a bot for a popular web based strategy game and for remotely parsing web pages for useful information.

It is a very useful library for most actions related to web pages and I plan to use it in my future C projects as well.

Andrioid
A: 

I use curl to connect to multiple APIs from the same script and retrieve the information. I've also used CURL to post out information to multiple form processors.

Tim
A: 

A FASTCGI proxy that runs LibXSLT on any xml with a PI for the stylesheet.

Fenugreek Femtosecond
A: 

We use cURL in KATO a lot.

  • Automatic submission of interesting content to the delicious social bookmarking site
  • Updating a twitter feed with interesting content
Glenn
A: 

You can use CURL to post to facebook, to grab meteo information, to grap ip information, to login to twitter and tweet, to find images on google... to do all those things you need CURL and regular expression to extract code from pages. I wrote a php class that uses curl to do many things like these, you can find it here: http://www.barattalo.it/mini-bots-php-class/

Pons