Sub Server_HandleRequest (Request As ServletRequest, Response As ServletResponse)
Try
If Request.Method = "POST" Then 'User pressed on the Send button
Log("Incasso HTTP in corso ")
CallSubDelayed2(Me, "GestisciRichiesta", Response)
Else
Log("Non è un POST")
End If
Catch
Response.Status = 500
Log("Error serving request: " & LastException)
Response.SendString("Errore server " & LastException )
End Try
End Sub
Private Sub GestisciRichiesta(Response As ServletResponse)
Wait For RispostaHttp (Risposta As String)
Response.SendString(Risposta)
Log("Risposta" & Risposta)
End Sub