Italian java.lang.IllegalArgumentException: Unexpected char 0x20 at 10 in header name: User-Agent

Angelo Messina

Active Member
Licensed User
Longtime User
Prima dell'ultimo aggiornamento funzionava benissimo

Sub PVOutput(data As String)
Dim job2 As HttpJob
job2.Initialize("job2", Me)
job2.PostString("https://pvoutput.org/service/r2/addbatchstatus.jsp", data)
job2.GetRequest.SetHeader("User-Agent " , USER_AGENT)
job2.GetRequest.SetHeader("X-Pvoutput-SystemId ",sid)
job2.GetRequest.SetHeader("X-Pvoutput-Apikey ",apikey)
End Sub

sapete spiegarmi cosa è sbagliato
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Forse c'è uno spazio di troppo alla fine del Header?
 

drgottjr

Expert
Licensed User
Longtime User
lo spazio (carattere 20 ) non va
 

Attachments

  • capture5.png
    capture5.png
    10.9 KB · Views: 232
Top