[Qt-interest] QtWebKit and IPv6

Constantin Makshin cmakshin at gmail.com
Wed May 25 16:26:08 CEST 2011


Thanks for the information, Thiago.

On Tuesday 24 May 2011 06:59:02 Thiago Macieira wrote:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110525/61921619/attachment.bin 


More information about the Qt-interest-old mailing list