Buon giorno,
Ho fatto un app che fa semplici richieste ad un sito ospitato in netsons.org
Sub ExecuteRemoteQuery(sqlquery As String, JobName As String)
Dim job As HttpJob
job.Initialize(JobName, Me)
job.Download("http://miosito.netsons.org/mioscript.php?comando=test)
End Sub
e la cosa ha funzionato dal 2022 fino a pochi giorni fa,
quando il server mi risponde ad ogni tipo di richiesta:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
interpellata l'assistenza mi dicono che viene 'bloccato' perchè nella richiesta non viene trovato un 'user agent'
Al di là che evidentemente avranno cambiato qualcosa per cui prima andava ora non più, ma , eventualmente, come posso
passare il dato 'user agent' ?
Vedo che Download2 prevede di passare variabili ma non saprei come fare.
Qualcuno può aiutarmi?
Grazie
Andrea
Ho fatto un app che fa semplici richieste ad un sito ospitato in netsons.org
Sub ExecuteRemoteQuery(sqlquery As String, JobName As String)
Dim job As HttpJob
job.Initialize(JobName, Me)
job.Download("http://miosito.netsons.org/mioscript.php?comando=test)
End Sub
e la cosa ha funzionato dal 2022 fino a pochi giorni fa,
quando il server mi risponde ad ogni tipo di richiesta:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
interpellata l'assistenza mi dicono che viene 'bloccato' perchè nella richiesta non viene trovato un 'user agent'
Al di là che evidentemente avranno cambiato qualcosa per cui prima andava ora non più, ma , eventualmente, come posso
passare il dato 'user agent' ?
Vedo che Download2 prevede di passare variabili ma non saprei come fare.
Qualcuno può aiutarmi?
Grazie
Andrea