Closed Thread
Results 1 to 2 of 2

Thread: WinInet API timeout

  1. #1
    Yury900 is offline Newbie
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

    WinInet API timeout

    My VB program is using Windows Internet API calls to send data to the web server, using POST method. If server responds in less than 5 seconds, everything is Ok. After 5 seconds I'm getting an error 12002 - timeout.

    I tried InternetSetOption() to increase the timeout period, but it's not working.

    I tried to change it in the registry:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\ReceiveTimeout - not working.

    I also tried Microsoft Web Browser ActiveX control with same result - less than 5 seconds is Ok, after 5 seconds the control itself shows the message about timeout.

    What else can I do?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: WinInet API timeout

    If you Google "server timeout 12002" you get a bunch of possible solutions.

    It looks like it could be your server or firewall.

    I would check to see if Internet Explorer does any better. I would also try different API's. I use Indy which is avaliable with Delphi which has alwayed worked for me.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Get session timeout
    By Vaielab in forum PHP Development
    Replies: 4
    Last Post: 08-16-2011, 07:57 AM
  2. Network Timeout
    By Xav in forum Computer Software/OS
    Replies: 8
    Last Post: 08-27-2008, 08:01 AM
  3. MFC FTP Wininet API read problem
    By mukul in forum C and C++
    Replies: 0
    Last Post: 02-29-2008, 12:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

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