This forum has been archived. All content is frozen. Please use KDE Discuss instead.

web plasmoid - 302 referral and cookies

Tags: None
(comma "," separated)
dethonlegs
Registered Member
Posts
4
Karma
0
OS
Hi,

I've got a web plasmoid issue that I hope someone can help with. I've written a little html page that uses xmlhttp and canvas to show my isp usage. It looks good and works well in both konqueror and arora, but will not work as a web plasmoid in kde 4.3. I use a single xmlhttp POST request to logon to my ISP which then refers using 302 to the actual usage page. It's here that I get the authentication error in the plasmoid.

From what i've read, the issue could be that cookies are not set until the completion of the request, however the referred usage page requires that it be set beforehand. I've tried to break the request up so that I login first then browse to the usage page, but that fails too.

Any ideas are appreciated
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Does the Web Browser applet work with your ISP's page? I have a suspicion that you may be affected by a bug in the KIO http slave.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dethonlegs
Registered Member
Posts
4
Karma
0
OS
The web browser plasmoid behaves in the same problematic way.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You appear to have been affected by the same bug in the KIO HTTP slave the affects GMail. https://bugs.kde.org/show_bug.cgi?id=190480

Please post some additional details that can help in troubleshooting the problem.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
dethonlegs
Registered Member
Posts
4
Karma
0
OS
Here is a firefox header dump (less personal stuff) showing the redirect which is failing in the plasmoid:

https://memberservices.optuszoo.com.au/ ... =/myusage/

POST /login/?target=/myusage/ HTTP/1.1
Host: memberservices.optuszoo.com.au
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1pre) Gecko/20090701 Ubuntu/9.04 (jaunty) Shiretoko/3.5.1pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://memberservices.optuszoo.com.au/ ... =/myusage/
Cookie: JSESSIONID=83F8FB8FE3C8F3F5F73DDD23AFD1D166
Content-Type: application/x-www-form-urlencoded
Content-Length: 51
Action=login&username=user&password=pass
HTTP/1.x 302 Moved Temporarily
Date: Sun, 12 Jul 2009 23:56:30 GMT
Server: Apache-Coyote/1.1
Set-Cookie: global_auth=b14d2dda967846d169e188cbc918ee5b-user%3A%3A1247442990%3A1247442990; Domain=optuszoo.com.au; Path=/; Secure
Location: https://memberservices.optuszoo.com.au/myusage/
Content-Type: text/html
Content-Length: 0
X-Cache: MISS from memberservices.optuszoo.com.au
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
----------------------------------------------------------
https://memberservices.optuszoo.com.au/myusage/

GET /myusage/ HTTP/1.1
Host: memberservices.optuszoo.com.au
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1pre) Gecko/20090701 Ubuntu/9.04 (jaunty) Shiretoko/3.5.1pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://memberservices.optuszoo.com.au/ ... =/myusage/
Cookie: JSESSIONID=83F8FB8FE3C8F3F5F73DDD23AFD1D166; global_auth=b14d2dda967846d169e188cbc918ee5b-user%3A%3A1247442990%3A1247442990
dethonlegs
Registered Member
Posts
4
Karma
0
OS
This issue is now resolved in KDE 4.3.1.

Thanks everyone who helped out. I now have a shiny new web plasmoid to keep track of my internet usage! :

http://members.optusnet.com.au/phantomlord/usage.jpeg


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]