[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: Question about new KIO
From: David Faure <david () mandrakesoft ! com>
Date: 2000-03-03 0:24:33
[Download RAW message or body]
Good news : with the new KIO, you can add support for
whatever protocol-specific commands you want, using KIO::special().
Still in TODO state, letting the slave emit any kind of information
(i.e. the other way) with a special() "signal".
Bad news: AFAIK, the current kio_http is far from giving that much details.
I think you'd better ask Waldo for more details (he ported kio_http
to the new KIO), but in any case I think you'll need to add some stuff
to kio_http itself, for this.
( About 1) and 2) below, I guess the best is that you quickly scan
the sources of kio_http, since I don't know myself. )
But it sounds like a definitely good idea, using kio_http for this
instead of writing your own HTTP stuff.
It will probably improve kio_http's error handling, even when used
by other apps :-)
David.
On Thu, Mar 02, 2000 at 03:38:43PM -0800, Graham TerMarsch wrote:
> Don't know if this is the best list to ask on but I figured that its at
> least relevant here. Have this idea toying through the back of my mind
> here on a new app to create, and wanted to find out if it'd work with
> the new KIO....
>
> Short version of the app is that it's a website validator. Validating
> not in the sense of "we check for broken links", but in the sense of "we
> check to make sure that based on the headers provided, you got the right
> response". I do a lot of work for my customers turning their Webservers
> into App servers, and find that I'm spending a ton of time sitting at a
> cmd prompt telnetting directly to the http port and feeding it a raw
> HTTP request to see if the results that come back are what I expected.
>
> What I'm wondering.....is whether or not the new KIO (specifically
> kio_http) can provide me a low enough level of access to the request and
> response that I can:
>
> 1) Specify the exact contents of the headers that I want to send to the
> webserver.
>
> 2) Get access to the full header information of the response received.
> In the event of a http redirect, I need to be able to query the response
> _before_ any redirect is actually done (I need to see if I'm being
> redirected to the right place).
>
> Ideally I'd like to be able to do all of this in KDE without having to
> have any sub-processes of my own that I fire up. But, if what I've
> outlined above isn't possible I know I'd be able to get away with doing
> the HTTP request out of a Perl script that'd do the dirty work for me.
> Either that, or do raw HTTP connections myself (but then it'd be a
> serious pain when i get around to doing HTTPS stuff).
>
> Any suggestions on this one? Will the new KIO let me have access that
> low to the actual request/response?
>
> --
> Graham TerMarsch
>
> // -----------------------------------------------------------------
> // If you know the answer to a question, don't ask. -- Petersen
> Nesbit
> // -----------------------------------------------------------------
--
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic