From kde-devel Mon Oct 31 20:28:34 2005 From: =?ISO-8859-1?Q?Micha=EBl_Larouche?= Date: Mon, 31 Oct 2005 20:28:34 +0000 To: kde-devel Subject: Re: KIO::get + HTTP request headers Message-Id: <43667E72.8060000 () kdemail ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=113079050127442 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 <<