I am trying the exact example from the resumable subs video (video time : 24:35)
I want to continue executing code only after the check for the 404 is done. but still with no success. ??
once it gets to the wait for (inside the check sub) - it goes somewhere without getting to the if statement.
I do get the message "*** Service (httputils2service) Create ***" in the log.
am I that stupid? (probably)
should I quit programming? (no)
can anyone post a simple and fast code to check 404 ??
(Webaddress is public string and already contain a url)
Sub Go
CheckInternal
ReplaceSpaces
CreateIDN
Wait For (CheckHttp(WebAddress)) complete (Result As Boolean)
' is it 404 ??
If LN<3 Then
InternalFeatures
End If
End Sub
Sub CheckHttp (url As String) As ResumableSub
Dim job As HttpJob
job.Initialize("", Me)
job.Download(url)
Wait For (job) JobDone(job As HttpJob)
If job.Success Then
Log(job.GetString)
Else
Log(job.errorMessage):' your error should be here
End If
job.Release
Return job.Success
End Sub