[REBOL] HTTP Authentication Re:(4)
From: brett:codeconscious at: 21-Sep-2000 15:29
When I point my browser to a particular website it displays a dialog box
asking for username and password, to which I fill it in and I get my info.
But alas alack Rebol cannot get my info for me.
I've used the URL format and the block specification format to include
username and password.
Having used proxy.r and skimming the http scheme to give me a bit more info
on what is going on,
I can see that Basic Authorization is supported by Rebol and is creating the
same authorization header that Internet Explorer does - first off.
There are two things happening that maybe causing Rebol to go off track:
(1) At the URL I must use, the server responds with a 302 - temporarily
(2) The URL as specified by the location header of the response in (1)
refers to a specific port.
I can see that Rebol has been coded to handle (1) but I wonder if it is
handling (1) and (2) correctly when Basic Authorization is involved.
Unfortunately my comprehension of the network handler code was stretched to
go this far, so I cannot say for sure that they are/are not working
Further, I got it working for a page (cgi) linked off my target page.
(Yippee - 'cause this is the one I really want - for now....)
and remember IE works for the target page. I haven't discounted the
possiblity that the server is biased towards some user-agents or is doing
something particularly bizarre - but I think this is a low chance
I cannot get any more info, since Rebol using proxy.r as proxy cannot handle
the 302 and creates an infinite loop of requests.
So all up, methinks there be a bug lurking in the http scheme - an' boy
ain't it nimble.