Jump to content
Sign in to follow this  

HTTP Respond problem

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")

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

Share this post

Link to post
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
Sign in to follow this