httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff White" <jlw...@earthlink.net>
Subject Re: [users@httpd]Curl S/W
Date Wed, 19 Jan 2005 22:20:12 GMT


From: "PINNI, BALANAND (SBCSI)"

> I am trying to read HTTP header and
> in order to do that I need to install and
> understand Curl freeware.

> Just now I downloaded
> C:\unzipped\curl-7.12.3-win32-nossl>curl -I

I see you use Windows,
so you also have at least
two other great options, a
Windows GUI free product
and Windows Scripting.

Next time you are at a different
Windows machine, rememeber
the Windows Scripting way will
always be available to you!

First the Windows GUI product.

<quote>

A simple HTTP request that
is issued by typing a URL
in the address bar of a
browser might produce multiple
network requests to the target
server running IIS. However,
the user does not see all of
the resulting response data
because the browser does not
display it. WFetch allows you
to fully customize an HTTP request
and send it to a Web server so
that you can see the raw HTTP
request and response data. WFetch
is included in the Internet
Information Services (IIS) 6.0
Resource Kit.

</quote>

WFetch, IIS 6.0 Technical Reference
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-us/iisRG_TRB_4.mspx

HOW TO: Use Wfetch.exe to Troubleshoot HTTP Connections
http://support.microsoft.com/default.aspx?scid=kb;en-us;284285

WFetch is a GUI product.
To see  a picture, use the
WFetch usage link below.

<quote>

To observe the raw HTTP
traffic between a browser
and IIS, use WFetch.

</quote>

Generating an HTTP Request, IIS 6.0 Technical Reference
http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-us/iisRG_TRB_23.mspx

For more WFetch
information:
http://groups-beta.google.com/groups?as_q=WFetch&safe=images&as_ugroup=microsoft.public.*&lr=&hl=en

Now on to Windows Scripting.

<quote>

Microsoft Windows HTTP Services
(WinHTTP) provides developers
with an HTTP client application
programming interface (API) to
send requests through the HTTP
protocol to other HTTP servers.

WinHTTP supports desktop client
applications, Windows services,
and Windows server-based applications.

Snip

WinHTTP offers both a C/C++
application programming interface
(API) and a Component Object Model
(COM) automation component suitable
for use in Active Server Pages (ASP)
based applications.

</quote>

Windows HTTP Services (WinHTTP)
http://msdn.microsoft.com/library/en-us/winhttp/http/winhttp_start_page.asp

<quote>

// Example Code
// The following example shows
// how to open an HTTP connection,
// send an HTTP request, and get
// all of the headers from the response.

// Instantiate a WinHttpRequest object.
var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");

// Initialize an HTTP request.
WinHttpReq.Open("GET", "http://www.microsoft.com", false);

// Send the HTTP request.
WinHttpReq.Send();

// Get all response headers.
WScript.Echo( WinHttpReq.GetAllResponseHeaders());

</quote>

IWinHttpRequest | WinHttpRequest GetAllResponseHeaders(BSTR) method
[WinHTTP]
http://msdn.microsoft.com/library/en-us/winhttp/http/iwinhttprequest_getallresponseheaders.asp

Save the above script,
as say GetAllHeaders.js
then in a command prompt
window just type:

cscript.exe GetAllHeaders.js

or for a GUI type display type:

wscript.exe GetAllHeaders.js

Full Request info
IWinHttpRequest Interface interface [WinHTTP
http://msdn.microsoft.com/library/en-us/winhttp/http/iwinhttprequest_interface.asp

Using the WinHttpRequest COM Object [HTTP]
http://msdn.microsoft.com/library/en-us/winhttp/http/using_the_winhttprequest_com_object.asp

Retrieving Data Using Script
http://msdn.microsoft.com/library/en-us/winhttp/http/retrieving_data_using_script.asp

For more WinHttp Windows
Scripting information:
http://groups-beta.google.com/groups?as_q=WinHttp%20&safe=images&as_ugroup=microsoft.public.scripting.*&lr=&hl=en

Both WFetch and WinHttp allow
SSL, Windows Auth and much
much more.

Try both!

Jeff




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message