[webkit-dev] Unable to view https websites

varun_shrivastava varun.celunite at gmail.com
Mon Oct 29 01:45:38 PDT 2007


hi 

i have written a browser application which uses WebCore + JavaScript**
But the point is i have compiled CURLE with NSS support

Does Webcore supports Curle that has been built with NSS not openssl

Now when i try to connect to mail.google.com it displayed a message that 
No NSS Certificate database found

so i added following lines in NRCit/src/HttpCurl.cpp::
CurlRequest::execute() Function

curl_easy_setopt(handle, CURLOPT_VERBOSE, 1);
curl_easy_setopt(handle, CURLOPT_URL, " https://mail.google.com");
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 1);
curl_easy_setopt(handle, CURLOPT_CAINFO, "/etc/nss_db/");  /*Path of nss
database*/

now curl finds the nss certificate database here's the o/p of verbose mode
of CURLE

* About to connect() to mail.google.com port 80 (#0)
*   Trying 209.85.147.83... * Connected to mail.google.com ( 209.85.147.83)
port 80 (#0)
> GET / HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)
Host: mail.google.com
Accept: */*

< HTTP/1.1 302 Moved Temporarily
< Cache-control: no-cache, no-store
< Pragma: no-cache
< Location: http://mail.google.com/mail/
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Server: GFE/1.3
< Date: Mon, 29 Oct 2007 07:44:44 GMT
<
* Ignoring the response-body
* Expire cleared
* Connection #0 to host mail.google.com left intact
* Issue another request to this URL: 'http://mail.google.com/mail/'
* Re-using existing connection! (#0) with host mail.google.com
* Connected to mail.google.com (209.85.147.83) port 80 (#0)
> GET /mail/ HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)
Host: mail.google.com
Accept: */*

< HTTP/1.1 302 Moved Temporarily
* Added cookie GMAIL_HELP="EXPIRED" for domain mail.google.com , path /,
expire 631152000
< Set-Cookie: GMAIL_HELP=EXPIRED;Path=/;Expires=Mon, 01-Jan-1990 00:00:00
GMT
Path /
Cookie: GMAIL_HELP EXPIRED ((null)) from (null)
Cookie: GMAIL_HELP EXPIRED ((null)) from (null)
* Added cookie GV="EXPIRED" for domain mail.google.com, path /, expire
631152000
< Set-Cookie: GV=EXPIRED;Domain=mail.google.com ;Path=/;Expires=Mon,
01-Jan-1990 00:00:00 GMT
Path /
Cookie: GV EXPIRED ((null)) from mail.google.com
Cookie: GV EXPIRED ((null)) from mail.google.com
* Added cookie GV="EXPIRED" for domain mail.google.com, path /mail, expire
631152000
< Set-Cookie: GV=EXPIRED;Domain=mail.google.com ;Path=/mail;Expires=Mon,
01-Jan-1990 00:00:00 GMT
Path /mail
Cookie: GV EXPIRED ((null)) from mail.google.com
Cookie: GV EXPIRED ((null)) from mail.google.com
< Cache-control: no-cache, no-store
< Pragma: no-cache
< Location:
https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dmobile%26zyp%3Dl&ltmpl=ecobh&nui=5&btmpl=mobile
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Server: GFE/1.3
< Date: Mon, 29 Oct 2007 07:44:45 GMT
<
* Ignoring the response-body
* Connection #0 to host mail.google.com left intact
* Issue another request to this URL: '
https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dmobile%26zyp%3Dl&ltmpl=ecobh&nui=5&btmpl=mobile'
* About to connect() to www.google.com port 443 (#1)
*   Trying 64.233.189.104... * Connected to www.google.com (64.233.189.104)
port 443 (#1)

here browser is waiting indefinately and no webpage is being displayed
My OS is Linux Ubuntu Feisty 7.04
heres the version of curl i am using
curl 7.16.2 (i686-pc-linux-gnu) libcurl/7.16.2 NSS/3.11.4 zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IPv6 Largefile SSL libz 


please help
varun
-- 
View this message in context: http://www.nabble.com/Unable-to-view-https-websites-tf4710258.html#a13463371
Sent from the Webkit mailing list archive at Nabble.com.



More information about the webkit-dev mailing list