Hello,
I want build a app which repeat HTTP.TestConnection until the connection is true. Thx for help.
Sorry for bad english.
Professional Software Development Tools
Hello,
I want build a app which repeat HTTP.TestConnection until the connection is true. Thx for help.
Sorry for bad english.
use the page timer, put your test connection code in the On Timer event. Stop the timer when it returns true.
Ok, Thx, I'll try it and an other question is, how can I enter the AuthData by HTTP.Download or how must I enter this data?
AuthData is a table. You can define the table with your parameters and then use it in the HTTP.Download action
AuthData
(table) A table containing basic HTTP authentication information that can be used to gain access to the file. (This parameter is optional. If the download does not require HTTP authentication, just leave this parameter blank.) The table is indexed by the following keys:
KEY TYPE DESCRIPTION
UserName - string - The user name to be used during HTTP authentication.
Password - string - The password to be used during HTTP authentication.
Same differenceCode:tAuthData = {UserName = "Harry", Password = "Potter"}; HTTP.Download("http://www.hogwarts.com/downloads/potionsbook.zip", _TempFolder.."\\potionsbook.zip", MODE_BINARY, 20, 80, tAuthData, nil, nil); --or you can define it in the string HTTP.Download("http://www.hogwarts.com/downloads/potionsbook.zip", _TempFolder.."\\potionsbook.zip", MODE_BINARY, 20, 80, {UserName = "Harry", Password = "Potter"}, nil, nil);
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
OK, great THX TJ_Tigger
hi worm,
would u pls give me an example for this :
thanksOriginally Posted by Worm
![]()
Originally Posted by pooriapanahi
On the page in your project where you want to test the connection:
On Show Event
On Timer EventCode:if not HTTP.GetConnectionState().Connected then Page.StartTimer(1000); end
Code:if HTTP.GetConnectionState().Connected then Page.StopTimer(); end
Yeah right. Who's the only one here who knows the illegal ninja moves from the government?
()))))))))o)))))))==============================================
I just gave you an AMS6 answer to you AMS5 question. My apologies if my reply is not relevant.
Yeah right. Who's the only one here who knows the illegal ninja moves from the government?
()))))))))o)))))))==============================================