🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages Started by Brian Fri, 26 Jan 2007 19:54
Intercepting HTTP Authentication request
#402
Author: Brian
Date: Fri, 26 Jan 2007 19:54
11 lines
1252 bytes
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
Re: Intercepting HTTP Authentication request
#403
Author: Remy Lebeau (TeamB)
Date: Fri, 26 Jan 2007 20:22
14 lines
1329 bytes
"Brian" <no@spam.please.com> wrote in message
news:45ba5c2e$1@newsgroups.borland.com...

> 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
Re: Intercepting HTTP Authentication request
#404
Author: Brian
Date: Fri, 26 Jan 2007 21:34
15 lines
1575 bytes
Hi Remy,

> 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
Re: Intercepting HTTP Authentication request
#405
Author: Remy Lebeau (TeamB)
Date: Fri, 26 Jan 2007 22:54
14 lines
1363 bytes
"Brian" <no@spam.please.com> wrote in message
news:45ba73ac$1@newsgroups.borland.com...

> 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
Re: Intercepting HTTP Authentication request
#406
Author: Brian
Date: Sat, 27 Jan 2007 14:26
12 lines
1487 bytes
Hi Remy,

> 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads