Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set loHTTP = New MSXML2.XMLHTTP30
'Open the URL passing the data
With loHTTP
.open "POST", lsProtocol & lsServer & "/" & lsURL, True
'Now Get the response, give ourselves upto 2 mins to upload and receive response
ldTimer = Timer
While (Not lbAbortUpload) And (Not lbUploadComplete)
'Check to see if we have sent !
If Not lbSentRequest Then
lbSentRequest = True
.send xddProductBlock & "=" & vsCSV
ElseIf (Timer - ldTimer) > liTimeOut Then
lbAbortUpload = True
.abort
ElseIf .readyState = 4 Then
lbUploadComplete = True
End If
DoEvents
Wend
'Do we have a response ?
If lbUploadComplete And .Status = 200 Then
'Check the response
If UCase(.responseText) = "OK" Then
lbReturn = True
Else
noError.TLCErr TypeError, "Server Returned [" & loHTTP.responseText & "] Response.", "TLCWebImport::StockExport::nfbSendXMLData"
End If
Else
noError.TLCErr TypeError, "Failed to Send to Server [" & loHTTP.Status & " : " & loHTTP.statusText & "]", "TLCWebImport::StockExport::nfbSendXMLData"
lbReturn = False
End If
End With