Http Recording
Author
Discussion

dern

Original Poster:

14,055 posts

311 months

Thursday 25th October 2007
quotequote all
Morning,

Is there any way I can get internet explorer (6 in this case) to record all the requests it makes and the responses it receives which talking to a website? I'm trying to write an automated client using the jakarta HttpClient and I can't get my client to successfully log in to the website I need to talk to. It works in IE but not in my client. My client writes all the request/response info (courtesy of the wire trace) to a log file and I want to get IE to do the same so I can compare the two traces and find out what my client is doing wrong.

Thanks for any pointers.

Regards,

Mark

gopher

5,160 posts

291 months

Thursday 25th October 2007
quotequote all
I think Fiddler does this, amongst other things.

Cheers

Paul

Plotloss

67,280 posts

302 months

Thursday 25th October 2007
quotequote all
Could you not use one of the lower level activex components that IE uses and trap events etc via that?

Zumbruk

7,848 posts

292 months

mystomachehurts

11,669 posts

282 months

Thursday 25th October 2007
quotequote all
Wireshark/Ethereal will do this for you.

Set it to capture HTTP, then right click on the starting GET/POST request and click 'Follow TCP Stream' you get a full text dump of the entire interaction.

(I do othis all the time debugging Web Apps)

dern

Original Poster:

14,055 posts

311 months

Thursday 25th October 2007
quotequote all
Thanks for all the suggestions. I'll have to try them out later as I don't have admin access rights for this pc. What this means is that I can't install any of them that require changes to the registry or require changes to the proxy used by IE. Hopefully I will have soon - I hate the start of new contracts wink

ATG

23,900 posts

304 months

Thursday 25th October 2007
quotequote all
another vote for ethereal ... used it to debug a similar situation... my problem was my HTTP client app wasn't authenticating against the company's Msft proxy server (uses a proprietary msft scheme). I'd not used etheral before, but downloading it and spotting the problem in the traces took no time at all.

whygee02

3,457 posts

232 months

Thursday 25th October 2007
quotequote all
gopher said:
I think Fiddler does this, amongst other things.

Cheers

Paul
Spot on advice - fiddler is the one I use day in / day out at work, free to download and use !!

dern

Original Poster:

14,055 posts

311 months

Thursday 25th October 2007
quotequote all
whygee02 said:
gopher said:
I think Fiddler does this, amongst other things.

Cheers

Paul
Spot on advice - fiddler is the one I use day in / day out at work, free to download and use !!
Although IT policy doesn't enable me to install it or .net2 that v2 requires or have admin access rights or edit the connection tab (so it's been removed) or install firefox or install any kind of local proxy. Sigh, I'll do it at home.

Edited by dern on Thursday 25th October 15:02

mystomachehurts

11,669 posts

282 months

Saturday 27th October 2007
quotequote all
dern said:
IT policy doesn't enable me to install it or .net2 that v2 requires or have admin access rights or edit the connection tab (so it's been removed) or install firefox or install any kind of local proxy. Sigh, I'll do it at home.
Wireshark/tethereal runs on all my machines and has never been 'installed' - it's a pure binary packege with it's own libraries included in it's own sub directories.

Install (well, I say install, I mean uncompress the archive) on a PC at home, bung it on a USB memory stick, plug into your work machine and run from there.

best
Ade

SportKaKenny

1,598 posts

277 months

Saturday 27th October 2007
quotequote all
Might need to be careful about running Wireshark / Ethereal at work without express permission to use it. At my old university I was a researcher. I was told using (read getting caught using) ethereal was one of very few ways to get chucked out, no questions asked, due to its potential uses.

Edited by SportKaKenny on Saturday 27th October 22:04