Bug 267734 - Add CGI support
Summary: Add CGI support
Status: CONFIRMED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-05 18:49 UTC by Christopher Yeleighton
Modified: 2011-09-29 15:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2011-03-05 18:49:32 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

Whenever I follow a hyperlink to a local CGI script generating plain text, Konqueror offers to download the text, offsets the download job to KGet and KGet fails.  This functionality is governed by embedding preferences for plain text documents.

Reproducible: Didn't try

Steps to Reproduce:
  1. Set up script to print text in your CGI directory:
{ cat >hello <<'^Z' && chmod +x hello && 
#!/bin/sh
echo 'Content-Type: text/plain

Hello, World!'
^Z
cat >hello.html <<'</HTML>' && xdg-open hello.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" >
<HTML LANG=en ><TITLE >Reference page </TITLE >
<P ><A HREF="cgi:/hello" >Hello</A >
</HTML>
}

  2. Tell Konqueror to follow the link to Hello.
  3. Tell Konqueror to save the referenced resource.
  4. Examine the X session error log.

Actual Results:  
  1. Konqueror displays the "Reference page" with a link to Hello.
  2. Konqueror offers to save the referenced resource.
  3. Nothing happens.
  4. NewTransferDialogHandler::slotMostLocalUrlResult: 
       An error happened for KUrl("cgi:/hello")

Expected Results:  
  2. Preferably, Konqueror should display the resource using KatePart.  
     (This is configurable, although not the default).
  4. KGet should be able to retrieve and save the resource generated by CGI.

OS: Linux (x86_64) release 2.6.34.7-0.7-desktop
Compiler: gcc
Comment 1 Matthias Fuchs 2011-08-09 11:24:02 UTC
Currently there is no support for cgi if I recall a dialog/plasma information should popup saying that the "protocoll" is not supported.