HTTP Request Capture (Automated Scripting)

I'm trying to figure out how to capture the HTTP requests going th

Page 1 of 1

5 Replies - 5613 Views - Last Post: 21 February 2010 - 06:48 PM Rate Topic: -----

#1 tree6014   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 14
  • Joined: 30-November 07

HTTP Request Capture (Automated Scripting)

Post icon  Posted 11 October 2009 - 05:33 PM

So, basically, I'm trying to figure out how to capture the HTTP requests made by a web browser that is embedded in my C# client app. Can this be done with the web browser object that is provided in visual studio? If not, does anyone know of something that is compatible with visual studio 2008 that will work? I'd rather not write an entire proxy to do this... Thanks.

This post has been edited by tree6014: 11 October 2009 - 05:34 PM

Is This A Good Question/Topic? 0
  • +

Replies To: HTTP Request Capture (Automated Scripting)

#2 SixOfEleven   User is offline

  • Planeswalker
  • member icon

Reputation: 1055
  • View blog
  • Posts: 6,643
  • Joined: 18-October 08

Re: HTTP Request Capture (Automated Scripting)

Posted 11 October 2009 - 05:53 PM

How do you handle the web browser control making its requests? Does the user click something to submit the request? If the user clicks a button to send the request you have your answer. In the click event of that button you will have what is being requested, you could capture that. Sorry if this isn't what you are asking. It would be helpful if you posted a little code.
Was This Post Helpful? 0
  • +
  • -

#3 tree6014   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 14
  • Joined: 30-November 07

Re: HTTP Request Capture (Automated Scripting)

Posted 11 October 2009 - 06:18 PM

The user will use the web browser control just like anyone would use a normal web browser. The idea is that all of the HTTP requests will be captured for later use in a script. Then, the requests will be played back in the script to replicate what the user was doing. I have a lot of code written; but, none of it really applies to the actual HTTP request capturing. It deals with everything before and after this HTTP request capturing will occur such as a scripting language and HTTP request implementation.

This post has been edited by tree6014: 11 October 2009 - 06:19 PM

Was This Post Helpful? 0
  • +
  • -

#4 SixOfEleven   User is offline

  • Planeswalker
  • member icon

Reputation: 1055
  • View blog
  • Posts: 6,643
  • Joined: 18-October 08

Re: HTTP Request Capture (Automated Scripting)

Posted 11 October 2009 - 06:21 PM

Are you try to capture when the user clicks a link in the web browser? Or when the user types in a URL and clicks submit? Or are you trying to do both?
Was This Post Helpful? 0
  • +
  • -

#5 tree6014   User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 14
  • Joined: 30-November 07

Re: HTTP Request Capture (Automated Scripting)

Posted 11 October 2009 - 06:42 PM

Both. Ideally, I will capture every request that get's sent to a web server. If I have to, I will write a proxy and have the browser go through it so I can have the proxy grab all the requests; but, it seems like there's gotta be an easier way.
Was This Post Helpful? 0
  • +
  • -

#6 Guest_rareriroru*


Reputation:

Re: HTTP Request Capture (Automated Scripting)

Posted 21 February 2010 - 06:48 PM

try using document property in the webBrowser control
Was This Post Helpful? 0

Page 1 of 1