Disable automatic Encode URL
-
wrote on 18 Jan 2011, 13:23 last edited by
when i set encoded url with percent % :
webkit make double encode this url
Can i disable this Feature ?
dont talk me about qt is automatic - when i get BAN from yandex - yandex redirect me in Captcha Page - and webkit encode this url too and i get 404 error .
-
wrote on 18 Jan 2011, 15:18 last edited by
Where are you setting that url? Can you pastebin a snippet?
-
wrote on 18 Jan 2011, 16:44 last edited by
ок.
http://pastebin.com/M0nii3vZ - this url i need to load
http://pastebin.com/GPMk3Nun - this load ( double encode ) ((((
i think, that i can disable autoencode feature in settings, but i cant found this ((((
-
wrote on 18 Jan 2011, 16:48 last edited by
Can you paste your code? My crystall ball is out of service.
-
wrote on 18 Jan 2011, 17:01 last edited by
=))))
self.browser.load(QUrl(self.lineedit.text()))
self.lineedit.text() = http://pastebin.com/M0nii3vZ
-
wrote on 18 Jan 2011, 17:02 last edited by
in yandex i see in search string double encoded phrase ((((
-
wrote on 18 Jan 2011, 17:06 last edited by
Do you craeate a "QUrl":http://doc.qt.nokia.com/4.7/qurl.html on your own? If so, you should use static "fromEncoded() ":http://doc.qt.nokia.com/4.7/qurl.html#fromEncoded method.
-
wrote on 18 Jan 2011, 21:54 last edited by
ok tnx
Can i catch redirect ? and rewrite url ( i deEncode url) ??
Tnx )
-
wrote on 18 Jan 2011, 22:02 last edited by
A redirect URL should be handled and decoded correctly internally.
-
wrote on 18 Jan 2011, 22:08 last edited by
when i connect to event downloadFinished, i see that url is double encoded, and redirect not work ((( -
can i connect to another event, catch redirect, correct url and continue request ?
-
wrote on 18 Jan 2011, 22:22 last edited by
Are you sure the URL sent from the server is correct? Sounds like it is double encoded on that side. I never heard of any problems with redirection and webkit.
-
wrote on 18 Jan 2011, 22:26 last edited by
when redirect to another url and url has "%" webkit do encode and i get double encode ( yandex. say me 404 error ) ((((
when i get ban i post this url.
-
wrote on 18 Jan 2011, 22:30 last edited by
Provide us a short, complete, compilable and working example app that demonstrates the bug. We'll have a look into it.
It does not help posting the URL here.
-
wrote on 18 Jan 2011, 22:43 last edited by
ok. now i do this -
@
- self.connect(self.page().networkAccessManager(), QtCore.SIGNAL("finished( QNetworkReply *)"), self.finishedURL)
- on finishedURL:
oRedirect = oRequest.attribute(QNetworkRequest.RedirectionTargetAttribute).toUrl( )
if not oRedirect.isEmpty( ):
sUrl = str(oRedirect.toString( ))
.....
url processing and get captha image ....
@
now i cant get ban (((( - all ip is un-ban ))))
[EDIT: code formatting, Volker]
-
wrote on 9 Dec 2013, 08:53 last edited by
I got the same issue - all clicked urls in QtWebKit object that contains percent (%) are broken in Qt WebKit, but works well on Rekonq browser (that use webkit).
As I see, QtWebKit replace in url all percent symbols to % construction and broke the url.
Koshak01, did you solve this problem?