[Qt-interest] QWebView and Basic access authentication

Jason H scorp1us at yahoo.com
Wed Mar 24 22:14:47 CET 2010


Oops, I missed the line that said you can preemptively send it.

***IGNORE THIS****




----- Original Message ----
From: Jason H <scorp1us at yahoo.com>
To: Kelly Burkhart <kelly.burkhart at gmail.com>; qt-interest at trolltech.com
Sent: Wed, March 24, 2010 5:02:11 PM
Subject: Re: [Qt-interest] QWebView and Basic access authentication

Its been a while, but the server has to ask for the auth. with 401

I don't think you can send it preemptively. 

http://en.wikipedia.org/wiki/Basic_access_authentication




----- Original Message ----
From: Kelly Burkhart <kelly.burkhart at gmail.com>
To: qt-interest at trolltech.com
Sent: Wed, March 24, 2010 4:15:29 PM
Subject: [Qt-interest] QWebView and Basic access authentication

Hello, I'm trying to use basic access authentication from a QWebView as follows:

QWebView *wv = new QWebView;
QUrl url("http://devwww/test.html");
url.setUserName("kelly");
url.setPassword("12345");
wv->load(url);

Here's what is sent:

User-Agent: Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/532.4
(KHTML, like Gecko) tb_web Safari/532.4\r\n
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n
Connection: Keep-Alive\r\n
Accept-Encoding: gzip\r\n
Accept-Language: en-US,*\r\n
Host: devwww\r\n
\r\n

I expect to see something like:

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\r\n

After the Host: line.

Do any of you know what I'm doing wrong?

Thanks,

-Kelly
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      




More information about the Qt-interest-old mailing list