Jump to content

HTTP Respond problem


0000
 Share

Recommended Posts

This is a part of code:

$OHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$id = 100
For $i=1 to $id Do Step 1
$OHTTP.Open("POST", "http://online.game/builder.php")
$OHTTP.Send("build=" & $i & "&agree=1")
Next

So this script working really fast, but there is one problem. Sometimes Online-Game doesn't respond in time (some delay) because of that program crashes with error: 'HTTP-Respond-error...'

Is there any way to check if Http-server send respond to program and program got it?

Thanks, Mr.0000

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...