Solved

TWebBrowser authentication

Posted on 2004-04-13
8
1,013 Views
Last Modified: 2012-06-21
Hi All,
 i am usign TWebBrowser to embed a browser in my form. From the TWebBrowser i call Navigate2() method to navigate to a url. Before the URL opens, a dialog is displayed to get the userid and password from the user.
 is there any way i can pass the information from the browser to the server without interrupting the user with the message box..
Appreciate the help.
Thanks,
Preetham.
0
Comment
Question by:kingpreetham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
8 Comments
 

Expert Comment

by:lnishimura
ID: 10815822
u can call the url like this

http://username:password@Your_urlAddress
0
 

Expert Comment

by:lnishimura
ID: 10815875
Here is a code
Put 2 edit's (User,Pass) and 1 button

----------------Sample---------------------
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleCtrls, SHDocVw_TLB;

type
  TForm1 = class(TForm)
    WebBrowser_V11: TWebBrowser_V1;
    Button1: TButton;
    user: TEdit;
    pass: TEdit;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
WebBrowser_V11.Navigate('http://' + user.text +':' + pass.text + '@192.168.0.254');
end;

end.





0
 

Author Comment

by:kingpreetham
ID: 10817810
I did pass the uid:pwd in the url and it worked...
How can i pass it as a part of the authentication header...
does it make a difference as compared to the first method..
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:lnishimura
ID: 10818065
I dont know...
But i think its not different than the first one
0
 

Expert Comment

by:lnishimura
ID: 10830270
wont you close this?
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 13284888
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to renew a Delphi rad-studio licence? 5 77
Multiple image collision 13 88
Dynamically Created Query 3 70
Get monday of current week where a week always starts on monday 2 20
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question