HTTP request

junaidahmed

Well-Known Member
Licensed User
Longtime User
Can I execute multiple request using http library in single event

example code :

Dim request As HttpRequest
Dim request1 As HttpRequest
Dim request2 As HttpRequest
Dim sdRoot As String
Dim ExpURL As String
Dim CSVURL As String


SV.Initialize(0)
Table = SV.Panel
Table.Color = TableColor
Activity.AddView(SV, 5%x, 450, 90%x, 80%y)
ColumnWidth = SV.Width / NumberOfColumns
SelectedRow = -1


ExpURL = "http://kharind.com/experiment/TestExport.php"
request1.InitializeGet(ExpURL)
request1.Timeout = 10000 'set timeout to 10 seconds
If HttpClient2.Execute(request1, MainRequestId) = False Then Return



CSVURL = "http://kharind.com/experiment/export.csv"
request.InitializeGet(CSVURL)
request.Timeout = 10000 'set timeout to 10 seconds
If HttpClient2.Execute(request, 200) = False Then Return
 
Top