You are not logged in.

Search results

Search results 1-6 of 6.

Friday, July 1st 2005, 10:38pm

Author: cristianbdg

set site specific Referer, like UserAgent

Sorry it took me so long to reply, but understanding how a webpage gets fetched in KDE takes a long time (and I'm still not done). As far as I can see, nor the user-agent, nor the referer get set at the kio_http code, because kio_http just does a metaData("referrer") and metaData("UserAgent") What I can't seem to find is where the UserAgent metaData gets set. But that's not why I decided to write again. I'm writing this because I found out that setting a custom referer ALREADY WORKS! ...But ther...

Thursday, June 9th 2005, 11:43pm

Author: cristianbdg

set site specific Referer, like UserAgent

Is it possible to set a site specific Referer, the same way as site specific UserAgents are set? I already saw that the UserAgents are stored in kio_httprc. I would like to write a little patch that reads Referers from this file (kio_httprc) the same way as it reads the UserAgents: Something like: [somesite.com] UserAgent=Mozilla/4.0 (compatible; MSIE 5.5; Windows 9 Referer=http://www.somereferer.com The problem is that I can't seem to find in which sourcefile the UserAgent from kio_httprc is re...

Saturday, October 30th 2004, 12:12pm

Author: cristianbdg

kio slave

I finally decided to do it completely differently. I just downloaded the source of the http kio-slave, changed the names and some lines of the code so that it uses the reference part of the url as the referer and not the normal one and now it works. It still has a few quirks, but I'm pretty sure that I can solve them by taking a closer look at the code. Thanks anyway for your help!

Thursday, October 28th 2004, 8:49pm

Author: cristianbdg

kio slave

> "Do you call the KApplication's exec() method somewhere, i.e. do you start the event loop?" Well, no, I didn't know I had to. (But I can understand it's necessary). I changed "return 0;" in kdemain to "return app.exec();" and immediately things changed, although unfortunately it still doesn't work. Now the error I get is: kio (KLauncher): ERROR: SlavePool: Unexpected data from slave. The error occurs after slotResult() finishes. The strange part is that slotData still doesn't get called until ...

Wednesday, October 27th 2004, 12:41pm

Author: cristianbdg

kio slave

Sorry to be talking all alone, but I've got some new findings: 1. I saw that the audiocd slave still uses KApplication app( argc, argv, "kio_spoof", false, true ); so I put that in my slave too. It generates a warning: warning: `__comp_ctor' is deprecated (declared at /usr/kde/3.3/include/kapplication.h:198) but other than that the slave starts up ok, so I'm leaving it to be able to concentrate on the other problem. 2. Putting debug messages in the code proves that kio_spoofProtocol::get( const ...

Tuesday, October 26th 2004, 9:36pm

Author: cristianbdg

new try

after having learned a lot of new things about programming, I decided to go back to my frustrated project, just to see if the new things I learned would help me to get this working. I actually started all over again, but after two days I find myself with practically the same code as before, but now it works even worse. The problem is that the what I previously used to create a KApplication now has a KDE_DEPRECATED next to it in the documentation (and it says it will make my app crash). I tried t...