Sometimes it is helpful to see the *EXACT* response from a server for an HTTP request. There are numerous methods of achieving this result.

To see the full HTTP header of a request you can use a site like Rex Swain's HTTP Viewer.

Using the HTTP viewer you can easily see the header information from a request for which I pasted below after running it.


This is of course only a portion of the total results. With the header request utility, you can specify an alternate user agent to see how your script responds. Visit Rex's site for more.

Alternatively, you can use an application called cURL to request the contents of a site using a variety of protocols. You are effectively interacting with a site as a command line would. From the cURL site:

curl is a command line tool for transferring files with URL syntax, .... HTTP form based upload, proxies, cookies, user+password authentication ... and a busload of other useful tricks.

They have a download wizard to get the correct flavor or cURL for your needs here. I use a number of different computers, but at the moment I am on a Win XP box and the wizard took me to this download page.

I downloaded the ZIP package and extracted it to the following location. Note it does not have an installer, just extract the folder to a location you can get to.

c:\ program files \ cURL \ <paste here>

To run cURL on an XP box open the Command Prompt (cmd.exe) and navigate to that folder (cd program files, etc)

Once in the folder, you can type a command like this:

curl >c:\temp schipulDownloadTest.txt

which creates a text file of the contents of that page. Of course, this is a rudimentary example that you could achieve much easier by simply doing a view source and saving on a site. So explore more with cURL to learn more about what you can do!

Contact us to upgrade to Tendenci

The open source solution chosen by associations around the world.

Want to talk? (281) 497-6567

Sign up for Tendenci - The Open Source AMS

No per user pricing. Unlimited admins.

Demo Now

Have Questions?

Contact us!

Site Search