KHTML & www.hotmail.com
Waldo Bastian
bastian at kde.org
Tue Sep 17 19:56:19 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 17 September 2002 04:53 am, clyne at liduentertainment.com wrote:
> Hello Dirk,
>
> Tuesday, September 17, 2002, 12:06:23 PM, you wrote:
>
> DM> On Mon, 16 Sep 2002, clyne at liduentertainment.com wrote:
> >> In a developing session I discover that in konqueror when i acces to
> >> hotmail site it recives 6 cookies. In the simple browser using KHTML
> >> it only recives one cookie. My be a cooki problem of KHTML class?
>
> DM> You have to send an MS IE useragent string to workaround hotmail.com
> DM> braindamage. It doesn't allow other browsers.
>
> Ok. I don't found any method in KHTML_Part to send MS IE useragent
> string or other. Anybody know who to do it ? Thanks a lot, and excuse
> my englihs.
As a user you can configure the User Agent that gets send with the "User
Agent" option part of "Configure Konqueror"
As a developer you can connect the
configNeeded(const QString &protocol, const QString &host);
signal provided by the io-slave config object aka SlaveConfig::self() to a
slot in your application.
E.g. when you connect to "http://www.hotmail.com/" the configNeeded signal
will be emitted as 'configNeeded("http", "www.hotmail.com")'. You can then
adjust the user-agent from your slot by calling:
SlaveConfig::self()->setConfigData("http", "www.hotmail.com", "UserAgent",
"Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)");
And to ensure the UserAgent is indeed send:
SlaveConfig::self()->setConfigData("http", "www.hotmail.com",
"SendUserAgent", "true");
This overrides any setting the user may have set.
Cheers,
Waldo
- --
bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9h3rTN4pvrENfboIRArfGAJ9I8IGDUE+bkc67yA7TWrYhQFc5qQCghR6+
QU7BpoPJsaubXzJRUetQfFk=
=ojJ8
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list