[Gambas-user] HttpClient not exposing redirect response codes

Benoît Minisini gambas at ...1...
Tue Apr 25 19:36:42 CEST 2017


Le 25/04/2017 à 19:12, T Lee Davidson a écrit :
> I have run into a couple of sites that are responding with 301 (Moved
> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code
> yields "0" for both of those sites/codes (and HttpClient.Reason is
> empty). 200 & 404 codes are reported successfully.
>
> Have I missed something in the properties that is preventing proper
> disclosure of redirect response codes?
>
> Or is this a bug?
>
> (Project attached.)
>

HttpClient is "just" libcurl, so it may be a libcurl thing (that library 
has gazillons of options). I will check...

-- 
Benoît Minisini




More information about the User mailing list