BYTE.com
RSS feed

Newsletter
Free E-mail Newsletter from BYTE.com
Email Address
First Name
Last Name




 
    
             
BYTE.com > Tangled in the Threads > 2001 > February

SSL Proxying

By Jon Udell

February 14, 2001

(SSL Proxying :  Page 1 of 3 )



In this Article
SSL Proxying
A Window Into Encrypted Client/Server Conversations
Do-It-Yourself SSL Proxying?
Last week, I mentioned that the new beta version of Proxomitron, a local Web proxy, supports SSL. Let's look at how this works. Normally, Proxomitron works only with unencrypted traffic. It listens (by default) on port 8080.

To relay traffic through it, set your browser's HTTP proxy to localhost:8080. In Netscape, that's Edit->Preferences->Advanced->Proxies->Manual Configuration->View->HTTP. In MSIE, it's Tools->Internet Options->Connections->LAN Settings->Proxy Server->Use a Proxy Server.

Now you can watch the conversation between your browser and a Web server in Proxomitron's log window. Here's the browser on my Windows machine talking to the server on my Linux machine, as seen in the log window:

A browser requests a script, with parameter foo=bar:

GET /cgi-bin/test?foo=bar HTTP/1.0
Connection: keep-alive
User-Agent: Mozilla/4.5 [en] (WinNT; I)
Host: udell.test
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8

The server responds like this:

HTTP/1.1 200 OK
Date: Wed, 14 Feb 2001 18:43:20 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) 
mod_ssl/2.6.6 OpenSSL/0.9.5a mod_perl/1.24
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
Connection: keep-alive
If-Modified-Since: 
Wed, 23 Aug 2000 19:45:13 GMT; length=2890
User-Agent: Mozilla/4.5 [en] (WinNT; I)
Pragma: no-cache
Host: udell.test
Accept: image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8

In this case, the script, /cgi-bin/test, just echoes the name/value pairs it received.

This is useful because, as I mentioned last time, quite a few website APIs are made of nothing more than HTTP headers and GET requests, which you can analyze in Proxomitron's log window.

 Page 1 of 3 Next page


BYTE.com > Tangled in the Threads > 2001 > February
Dr. Dobb's Media Center
BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE: Volume 2 - Heuristic Algorithms
The Best of BYTE: Volume 2 - Heuristic Algorithms
In this volume of Best of BYTE, we explore the emergence of some heuristic algorithms. Although we have only scratched the surface of this intriguing subject, we hope we've suggested the potential of the synthesis of heuristics and algorithms.

© 2008 Think Services, Privacy Policy, Terms of Service, United Business Media Limited
Site comments: webmaster@byte.com
Web Sites: BYTE.com, dotnetjunkies.com, Dr. Dobb's Journal, SD Expo, Sys Admin, sqljunkies.com, Unixreview



MarketPlace
Try Numara FootPrints 9, The ITSM software that Delivers Real Value, Flexibility and Results.
Automatically capture customer crash data, no debugger required. Support for .NET, C++, OS X, Java.
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version
Easily create an automated, repeatable process for building and deploying software.
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
Wanna see your ad here?
 

web2