tchart Well-Known Member Licensed User Longtime User Jul 20, 2014 #1 I am trying to download a web page using HttpUtils2. The page is secured using Basic authentication. If I try to download the web page with no username & password I get a 401 unauthorized error which is expected. However if I supply the correct username and password I get an error of; Error: org.apache.http.client.ClientProtocolException Searching on Google this appears to have something to do with pre-emptive authentication. Has anybody got a work around for this in B4A? Thanks
I am trying to download a web page using HttpUtils2. The page is secured using Basic authentication. If I try to download the web page with no username & password I get a 401 unauthorized error which is expected. However if I supply the correct username and password I get an error of; Error: org.apache.http.client.ClientProtocolException Searching on Google this appears to have something to do with pre-emptive authentication. Has anybody got a work around for this in B4A? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2014 #2 HttpClient follows the protocol and only sends the authentication header after it received a 401 code (except in the case of POST messages with input streams). Upvote 0
HttpClient follows the protocol and only sends the authentication header after it received a 401 code (except in the case of POST messages with input streams).