Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. GPRS connection timeout

GPRS connection timeout

Scheduled Pinned Locked Moved Visual Basic
helpcsharpcomquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahzarmokhli
    wrote on last edited by
    #1

    Hi, I'm looking for a way to stop HttpWebResponse so that it stop looking for GPRS connction.Right now im using HttpWebResponse to automatically connect to GPRS,the problem is it took long for the GPRS to establish.I need to stop the request in about 10 second.Anyone have any suggestion? this is the code that i used to turn on the GPRS connection.... Dim myHttpWebRequest As System.Net.HttpWebRequest = CType(System.Net.WebRequest.Create("http://www.google.com"), System.Net.HttpWebRequest) myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), System.Net.HttpWebResponse) myHttpWebResponse.close thanks for your help....

    @h3aR

    L 1 Reply Last reply
    0
    • A ahzarmokhli

      Hi, I'm looking for a way to stop HttpWebResponse so that it stop looking for GPRS connction.Right now im using HttpWebResponse to automatically connect to GPRS,the problem is it took long for the GPRS to establish.I need to stop the request in about 10 second.Anyone have any suggestion? this is the code that i used to turn on the GPRS connection.... Dim myHttpWebRequest As System.Net.HttpWebRequest = CType(System.Net.WebRequest.Create("http://www.google.com"), System.Net.HttpWebRequest) myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), System.Net.HttpWebResponse) myHttpWebResponse.close thanks for your help....

      @h3aR

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, try setting HttpWebRequest.Timeout before calling HttpWebRequest.GetResponse :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
      All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups