F fabioferreiracs Member Licensed User Longtime User Jan 24, 2013 #1 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)
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)
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2013 #2 You should not set the host header. Upvote 0
F fabioferreiracs Member Licensed User Longtime User Jan 25, 2013 #3 ok this was resolved! in this case , I not configured the host and not necessary encode MainUrl. Very Thanks. Upvote 0
ok this was resolved! in this case , I not configured the host and not necessary encode MainUrl. Very Thanks.