[Qt-interest] QtWebKit and IPv6

Thiago Macieira thiago at kde.org
Tue May 24 04:59:02 CEST 2011


On Tuesday, 24 de May de 2011 14:28:40 Constantin Makshin wrote:
> Hi!
> 
> It seems that QtWebKit has some problems with IPv6 literal URLs (e.g.
> "http://[2001:4998:0:6::17]:80"). To check this, you need an IPv6 address
> and open "http://test-ipv6.com" in a QtWebKit-based browser like Arora or
> compile and run the attached example application — 6th test ("Test IPv6
> without DNS" — "connecting with a literal IPv6 hexadecimal address") fails,
> and if you try to follow that test's link or open its URL
> ("http://[2001:4998:0:6::18]:80/ip/?callback=?") directly, you'll get a
> "400 Bad Request" server error message.
> 
> I've also attached two screenshots with Arora:
> 1) at "http://test-ipv6.com" results description page;
> 2) "400 Bad Request" error at
> "http://[2001:4998:0:6::18]:80/ip/?callback=?".
> 
> Doesn't anyone know whether this is an upstream WebKit or QtWebKit-specific
> bug? It's definitely not a QUrl's failure because QUrl treats literal IPv6
> addresses as valid.

Hi Constantin

I think we found that bug last week and were working towards fixing it.

See 
http://qt.gitorious.org/qt/staging/commit/fd043eb78212de5935bc101624818070e1b4fb1b

the commented lines 2361 and 2362. QNetworkAccessManager is sending an invalid 
"Host:" header, which is what causes the 400 Bad Request reply.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110524/74320d4b/attachment.bin 


More information about the Qt-interest-old mailing list