double loading of web page when going through <alt-f2> - run?

Kevin Krammer kevin.krammer at gmx.at
Wed Apr 6 18:41:26 BST 2005


On Wednesday 06 April 2005 14:47, hubert lubaczewski wrote:
> On Wed, Apr 06, 2005 at 02:09:37PM +0200, Kevin Krammer wrote:
> > Whe using the run command, KDE first request the HTTP information about
> > the file you have entered and then decides which application can handle
> > the target's MIME type.
> > In your case it very likely encounters text/html and starts Konqueror for
> > it. If you enter the address into Konqueror, it can skip the second step
> > as the encountered MIME type is one it can handle itself.
>
> yes, i understand it, but the question is: how can i avoid double
> requests when using run command.
> i could live with four possibilities:
>
> 1. request is being made, mime type checked, and the content is somehow
> passed to konqueror - so it can display it directly without further
> (doubling) request.

It is a generic technique, it will call the associated application and pass it 
the URL

> 2. skip mime type checking, and just check for protocol - if it's http -
> pass to konqueror.

You could try setting Konqueror as the external browser.

> 2. make the first request use HEAD method instead of GET.

Haven't checked this yet, could be possible solution to implement KIO::stat 
like this in kio_http

> 3. use specific "Browser:" header instead of standard konquerors so i
> can modify the webpage so it will just ignore requests from "run command
> mime type checker".

You mean User Agent?
Hmm, might be a good idea, kio_http alone is not KHTML.
You could suggest that in a bugreport/wish item on bugs.kde.org

Cheers,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20050406/09f99e64/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list