Wednesday, May 31, 2006

Konquerors ViewMode Buttons

If you, after upgrading to Dapper Drake, are missing your beloved ViewMode Buttons in Konqueror, locate


and add the following ToolBar node:

<ToolBar newline="false" hidden="false" name="viewModeToolBar" >
<text>ViewMode Toolbar</text>
<ActionList name="viewmode_toolbar" />

Yes, you guessed, this drove me mad ;)

Sunday, May 28, 2006

Disabled Trackbacks

I just disabeld trackbacks for this blog.

They just filled my INBOX and DB.

Monday, May 22, 2006

Cookie Handling

I noticed some weirdance about how libcurl and thus pecl/http handles cookies.

I had to implement some changes which are only in CVS for now and which I'm going to outline here:

= new HttpRequest("");
$r->recordHistory = true;
// we don't care about cookies by default
// enable automatic recognition of cookies
// received cookies will be sent on the next request
// reset those "auto" cookies
// this needs at least libcurl >= v7.14.1

Beware that all this does not affect custom cookies set with HttpRequest::setCookies() and HttpRequest::addCookies(). Custom cookies can always be unset by calling HttpRequest::setCookies().

A final note on using the cookiestore option:

= new HttpRequest("");
// load and save cookies from /tmp/cookies.txt
// if 'cookiesession' is TRUE, session cookies
// won't be loaded from the cookiestore
"cookiesession" => TRUE,
"cookiestore" => "/tmp/cookies.txt")

Note that using the cookiestore automatically enables libcurls cookie engine.