filter that dump all the https request /response

I

iexpl

Hi, all

Is there a pre-written filter that dumps out all the https
request/response received by an Apache server?

If not, how can I go about written one? I looked through
ServletHttpRequest/ServletHttpReponse interface, but did not find any
methods that dump all the packet contents.


Thanks

-eva
 
T

Toddy Marx

iexpl said:
Is there a pre-written filter that dumps out all the https
request/response received by an Apache server?

You can try httpunit (http://httpunit.sourceforge.net). I know it
supports https but i only used it on http so far.

// import http unit testing
import com.meterware.httpunit.*;
....
// simulate a browser
WebConversation wc = new WebConversation();
// create a request
WebRequest request = new WebRequest(myUrl.toString());
// submit request to myUrl and get the servers response
WebResponse response = wc.getResponse(request);
// query httpunit response object
String responseText = response.getText();
String responseHeader = response.toString();
....

The com.meterware.httpunit.WebRequest and
com.meterware.httpunit.WebResponse classes are pretty powerful. They
offer a lot of functionality that helps configuring the request and
analysing the servers response.

Look here for information on httpunits https support:
http://httpunit.sourceforge.net/doc/sslfaq.html

L8er,
~Toddy
 
R

Robert Olofsson

: Is there a pre-written filter that dumps out all the https
: request/response received by an Apache server?

Why do you need this?
If you only need to look at the data then I would suggest that you
look at ethereal. It is a program that can be used to capture network
traffic. Inspecting the data on the wire is often better than trying
to insert some filter...

I do not know of any easy way to add a filter to apache so I can not
help you with that, but if you tell us why you need this maybe I know
something more.

/robo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top