POST METHOD : target host must not be null, or set in parameters

fabioferreiracs

Member
Licensed User
Longtime User
In Post method , what is the error in Http100_ResponseError :

"target host must not be null, or set in parameters"

when this happens?


The main part of Code :

B4X:
request.InitializePost2(su.EncodeUrl(MainUrl , "UTF-8") ,data )
request.SetHeader("Authorization" , Header)
request.SetHeader("Host" , "api.twitter.com")
request.SetHeader("Content-Type" , "application/x-www-form-urlencoded")

      MainRequestId = 106
      HttpClient100.Initialize("Http100")
      
      HttpClient100.Execute(request, MainRequestId)
 
Top