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

Comic widget / referrer url

Tags: None
(comma "," separated)
chresan
Registered Member
Posts
2
Karma
0

Comic widget / referrer url

Fri May 22, 2009 9:35 am
Hi,

I wrote a comic provider for the comic widget but I can't get it working because the request for the image must contain the http referrer url. The documentation and source code I found does not contain this case.

Is it possible to define a referer URL in the comic provider ? If not, where can I request this feature ?

I am not familiar with the kde development community (and its dos and don'ts) but I hope I am asking my question in the right place - if not I am more then happy with some advice :)

Thanks
Chresan
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: Comic widget / referrer url

Fri May 22, 2009 11:00 am
Not sure how a Comic provider works, but if you are using KIO to retrieve the comic yourself you can use KIO::Job and add the needed false meta data using addMetaData().


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Eric56
Registered Member
Posts
4
Karma
0

RE: Comic widget / referrer url

Fri May 22, 2009 12:33 pm
An interesting question, I never really tried this. Would like to know if you can define a referer URL in the provider. Hopefully someone here can answer the question. I have the feeling that it should be possible but I have to admit I don't know how.
chresan
Registered Member
Posts
2
Karma
0

RE: Comic widget / referrer url

Sat May 23, 2009 3:37 pm
@bcooksley I will investigate the KIO idea you mentioned. However I fear this workaround will circumvent for example the progress indicator of the comic-widget and perhaps would require more code than writing my own comic applet.


Chresan


Bookmarks



Who is online

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