Private Sub mySub
FetchWebsite("https://duckduckgo.com", Array As String("q","test","t","hj","ia","web"))
Wait For FetchWebsite_Complete
'Somehow use myJob.GetString value
End Sub
Sub FetchWebsite(url As String, param() As String)
Dim myJob As HttpJob
myJob.Initialize("", Me)
myJob.Download2(url,param)
Wait For (myJob) JobDone (myJob As HttpJob)
If myJob.Success Then
Log(myJob.GetString)
Else
Log("Error: " & myJob.ErrorMessage)
End If
myJob.Release
CallSubDelayed(Me, "FetchWebsite_Complete")
'Somehow return myJob.GetString
End Sub