Results 1 to 5 of 5

Thread: httpwebrequest - sending 'get's' to urls that would auto-load in a normal FF session

  1. #1

    Thread Starter
    Addicted Member jalexander's Avatar
    Join Date
    Jan 2011
    Location
    Memphis, TN
    Posts
    160

    Cool httpwebrequest - sending 'get's' to urls that would auto-load in a normal FF session

    Started playing with httpwebrequest as my projects have gotten far too complex for the VB 2010 WebBrowser control to handle. And lets face it....it's so out of date it's just not worth developing web projects with.
    Anyways I decided to load one of my webpages & was able to find everything present on my own server...however I noticed that a lot of the 'get' requests that would typically be sent by my browser were not being sent.
    So I had to create 'get requests' for all of the links (individually) that typically get triggered by javascript detection in FireFox for example. Which worked perfectly fine, although I could see it being tedious when dealing with dynamic pages.
    Is that just the way you have to do it when dealing in httpwebrequest? Or is there a way to ask it to send requests for all of the main functions of a webpage (just as a web browser would). Otherwise things like...[just as an example] statistics/pixel trackers etc. don't seem to be requested. I'm aware I can start using regex to find static link structures & go about it like that. I just don't want to start writing all that if there is a simpler way!
    dim jenn as geek = true
    Learning ~ Visual Basic 2010 ~ in free time between college/work -
    currently looking for a 'programming buddy' / 'coder friend' / and or 'mentor'. p.m. me if you
    have ANY free time AT ALL I'm like 33% of a novice level ~ willing 2 listen/learn +
    i am totally super motivated & promise to make an effffin amazing protege!!! #swag

    | -_-_- -_-_- |
    ...W.T..F!?.....
    ||| Matter on the atomic/quantum level isn't solid or even matter at all. It can also exist in at least 2 places simultaneously (demonstrated in lab). It's position can only be established when it's actually observed. If we turn our back on it... it goes back to a wave form. History show's that every previous generation (since the beginning of time) got almost everything wrong. Then it might very well stand to reason that up is down & right can be wrong. Admit it.. our combined perception of reality is just that, we know absolutely nothing of actual reality & to think we do is simply subscribing to a "ignorance is bliss" mantra |||

  2. #2
    PowerPoster Evil_Giraffe's Avatar
    Join Date
    Aug 2002
    Location
    Suffolk, UK
    Posts
    2,555

    Re: httpwebrequest - sending 'get's' to urls that would auto-load in a normal FF sess

    HttpWebRequest is not a browser, it's just a web request. It gets the resource, it doesn't do anything with it after that. If you don't want to use the WebBrowser control you will need to either find a different control that deals with the HTML documents you retrieve with the HttpWebRequest, or write the code yourself.

  3. #3

    Thread Starter
    Addicted Member jalexander's Avatar
    Join Date
    Jan 2011
    Location
    Memphis, TN
    Posts
    160

    Re: httpwebrequest - sending 'get's' to urls that would auto-load in a normal FF sess

    Quote Originally Posted by Evil_Giraffe View Post
    HttpWebRequest is not a browser, it's just a web request. It gets the resource, it doesn't do anything with it after that. If you don't want to use the WebBrowser control you will need to either find a different control that deals with the HTML documents you retrieve with the HttpWebRequest, or write the code yourself.
    Ok so pretty much I have to write it to a document (virtual or otherwise) to get the same effects as a browser....got it. Or write my own requests..ok well that covers that question then.

    Now then...how would I go about writing a "debug" window for the data I am receiving back from my get/post requests? So I can visualize any server messages I am getting back in real time on my form.

    For instance if i were making search requests to google, 1 after another....I would want to know if at some point google's server decided to send me a message that said "too many requests in such a short period"

    If i were using straight httpwebrequest's i would never see such a message....ya feel?
    dim jenn as geek = true
    Learning ~ Visual Basic 2010 ~ in free time between college/work -
    currently looking for a 'programming buddy' / 'coder friend' / and or 'mentor'. p.m. me if you
    have ANY free time AT ALL I'm like 33% of a novice level ~ willing 2 listen/learn +
    i am totally super motivated & promise to make an effffin amazing protege!!! #swag

    | -_-_- -_-_- |
    ...W.T..F!?.....
    ||| Matter on the atomic/quantum level isn't solid or even matter at all. It can also exist in at least 2 places simultaneously (demonstrated in lab). It's position can only be established when it's actually observed. If we turn our back on it... it goes back to a wave form. History show's that every previous generation (since the beginning of time) got almost everything wrong. Then it might very well stand to reason that up is down & right can be wrong. Admit it.. our combined perception of reality is just that, we know absolutely nothing of actual reality & to think we do is simply subscribing to a "ignorance is bliss" mantra |||

  4. #4
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: httpwebrequest - sending 'get's' to urls that would auto-load in a normal FF sess

    And lets face it....it's so out of date it's just not worth developing web projects with.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  5. #5

    Thread Starter
    Addicted Member jalexander's Avatar
    Join Date
    Jan 2011
    Location
    Memphis, TN
    Posts
    160

    Re: httpwebrequest - sending 'get's' to urls that would auto-load in a normal FF sess

    Quote Originally Posted by dunfiddlin View Post
    Yea ok that's not true, I built a pretty awesome project with it.....but it's definitely limited, requires a ton of maitenance, uses a lot of ram & is HELLA slow. But it does the job!
    And I have to credit a full 50-75% of it's functionality to dunfiddlin's help <3
    dim jenn as geek = true
    Learning ~ Visual Basic 2010 ~ in free time between college/work -
    currently looking for a 'programming buddy' / 'coder friend' / and or 'mentor'. p.m. me if you
    have ANY free time AT ALL I'm like 33% of a novice level ~ willing 2 listen/learn +
    i am totally super motivated & promise to make an effffin amazing protege!!! #swag

    | -_-_- -_-_- |
    ...W.T..F!?.....
    ||| Matter on the atomic/quantum level isn't solid or even matter at all. It can also exist in at least 2 places simultaneously (demonstrated in lab). It's position can only be established when it's actually observed. If we turn our back on it... it goes back to a wave form. History show's that every previous generation (since the beginning of time) got almost everything wrong. Then it might very well stand to reason that up is down & right can be wrong. Admit it.. our combined perception of reality is just that, we know absolutely nothing of actual reality & to think we do is simply subscribing to a "ignorance is bliss" mantra |||

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width