Use of HttpClient()
on Sun, 14 Feb 2021 21:22:06 +0100
I'm trying to migrate some functions from the use of Windows WinHttpRequest to
Alaska Xbase HttpClient object.
But I'm facing some trouble with HTTP redirects, because in WinHttpRequest I had
the option of enabling/disabling automatic redirects (HTTP responses with status
code 302) and that allowed me to see cookies created by server in that
Is there a way to stop automatic redirects with HttpClient class, to read
headers and content of that response?
Until now, I tried to subclass HttpClient() and use the :onBusy() callback
method, but I don't get cState='redirect' (mentioned in documentation) but
cState='status-redirect' with xStateInfo=7602280.
I will try with :sendAsync() to see if something changes, but I guess I won't by
lucky because :getStatusCode() documentation does not mention '3xx' codes.
Thanks in advance.