The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Monday, 24 August 2009

CURL on Windows

If you need to run curl on Windows you can download it form

the project's wbesite: http://curl.haxx.se/download.html


Then you have to unzip it, and copy culr.exe in "C:\Windows\System32".
If you will try to execute curl you will get an error because OpenSSL is mission.
You should download the installer form here: http://www.shininglightpro.com/products/Win32OpenSSL.html


After running the OpenSSL installer, you can run curl from the command line.


If you want to test a page of a web application, for instance a generated xml file, you can use curl in this way:


curl -H "Accept: application/xml" http://localhost:3000/info/who_bought/3


In that example you specify, in the header, that you want an XML file,
than you pass the URI.


1 Comments:

At 21 June 2011 at 12:49 , Anonymous Anonymous said...

finally, an understandable how to!

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home