Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > filter that dump all the https request /response

Reply
Thread Tools

filter that dump all the https request /response

 
 
iexpl
Guest
Posts: n/a
 
      01-14-2004
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
 
Reply With Quote
 
 
 
 
Toddy Marx
Guest
Posts: n/a
 
      01-14-2004
iexpl wrote:

> 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

--
Toddy Marx (email contains no z)


 
Reply With Quote
 
 
 
 
Robert Olofsson
Guest
Posts: n/a
 
      01-14-2004
iexpl <(E-Mail Removed)> wrote:
: 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dump complete java VM state as core dump (not via OS) possible? halfdog Java 12 02-21-2013 06:14 AM
HTTPS Request Dump in java Jolly Kumar Software 0 08-11-2009 04:25 AM
server side redirect https => https NOT working Axel ASP General 8 04-27-2009 02:02 AM
https authentication & storing https page in string Naveen Dhanuka Ruby 1 09-19-2007 02:05 PM
open-uri and HTTPS, or net/https with a redirect jotto Ruby 4 10-02-2006 07:26 AM



Advertisments