 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brian Guest
|
Posted: Sat Jan 27, 2007 1:54 am Post subject: Intercepting HTTP Authentication request |
|
|
Hi,
I'm currently implementing a browser "recorder" functionality that can
record a browsing sequence and later play it back. Works great so far,
except for pages protected by HTTP Authentication.
Is there any way to find out that the HTTP Authentication login window was
displayed, and what was entered as username and password?
Regards,
Brian |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Jan 27, 2007 2:22 am Post subject: Re: Intercepting HTTP Authentication request |
|
|
"Brian" <no (AT) spam (DOT) please.com> wrote in message
news:45ba5c2e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Is there any way to find out that the HTTP Authentication
login window was displayed
|
How are you recording the sequences to begin with? Chances are, you
will have to sniff the underlying HTTP traffic directly in order to
know when the server asks for authentication, and what credentials are
being sent in reply.
Gambit |
|
| Back to top |
|
 |
Brian Guest
|
Posted: Sat Jan 27, 2007 3:34 am Post subject: Re: Intercepting HTTP Authentication request |
|
|
Hi Remy,
| Quote: | How are you recording the sequences to begin with? Chances are, you
will have to sniff the underlying HTTP traffic directly in order to
know when the server asks for authentication, and what credentials are
being sent in reply.
|
Yes, that's what I was afraid I had to do. Currently I use a TCppWebBrowser
instance and capture the URLs in the BeforeNavigate2 event.
Is there no way to get information about requested HTTP Authentication and
the supplied login data from a TCppWebBrowser instance?
Regards and thanks,
Brian |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Jan 27, 2007 4:54 am Post subject: Re: Intercepting HTTP Authentication request |
|
|
"Brian" <no (AT) spam (DOT) please.com> wrote in message
news:45ba73ac$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Is there no way to get information about requested HTTP
Authentication
and the supplied login data
|
In the OnBeforeNavigate2 event, you are provided with the HTTP headers
that will be sent to the server. You could examine them to see if any
authentication values are present.
Gambit |
|
| Back to top |
|
 |
Brian Guest
|
Posted: Sat Jan 27, 2007 8:26 pm Post subject: Re: Intercepting HTTP Authentication request |
|
|
Hi Remy,
| Quote: | In the OnBeforeNavigate2 event, you are provided with the HTTP headers
that will be sent to the server. You could examine them to see if any
authentication values are present.
|
It's true that you can access the headers there, but apparently not all,
because OnBeforeNavigate2 is called before I'm prompted for my login
details. The authentication header values are not present when this event is
fired.
Brian |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|