[Qt-interest] QWebView and Basic access authentication
Kelly Burkhart
kelly.burkhart at gmail.com
Wed Mar 24 21:15:29 CET 2010
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
More information about the Qt-interest-old
mailing list