[Gambas-user] HttpClient not exposing redirect response codes

T Lee Davidson t.lee.davidson at ...626...
Tue Apr 25 19:12:50 CEST 2017


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.)

-- 
Lee

[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.4.57-18.3-default
Architecture=x86_64
Distribution=SuSE NAME="openSUSE Leap"
VERSION="42.2"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.2"
PRETTY_NAME="openSUSE Leap 42.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
Desktop=KDE5
Theme=QtCurve
Language=en_US.UTF-8
Memory=3951M

[Libraries]
DBus=libdbus-1.so.3.8.14
OpenGL=libGL.so.1.2.0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpclienttest-0.0.1.tar.gz
Type: application/gzip
Size: 12716 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170425/e49b8b5d/attachment.gz>


More information about the User mailing list