[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KIO::get + HTTP request headers
From:       Michaël_Larouche <michael.larouche () kdemail ! net>
Date:       2005-10-31 20:28:34
Message-ID: 43667E72.8060000 () kdemail ! net
[Download RAW message or body]

Thiago Macieira wrote:
> Joris Guisson wrote:
> 
> > Hi,
> > 
> > How can I change the fields in a HTTP request header (User-Agent
> > string mostly), with KIO::get ? I have allready tried
> > KIO::Job::setMetaData, but when I check the packets (tcpdump +
> > ethereal), the User-Agent string still is the one used by konqueror.
> > 
> 
> By setting the UserAgent metadata.
> 
> There are a few headers that you can set with metadata directly. Others, 
> you need the CustomHTTPHeaders metadata, separated by \r\n.
> 
> 
You have a good example here:

http://websvn.kde.org/branches/KDE/3.5/kdenetwork/kopete/protocols/msn/msnsecureloginhandler.cpp?rev=454075&view=auto


Cheers

 
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic