[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KDE I/O Slave -- Redirect Failure
From: "Ben Schepens" <schepens () mindspring ! com>
Date: 2001-08-07 16:35:34
[Download RAW message or body]
I am creating a I/O Slave (for now "hello" is the protocol
name I am using).
When I call the 'redirect' method, within the 'get' method
of the I/O Slave, it only works propely for HTTP types
of URLs. All others, FTP, MAILTO, etc, will not properly redirect.
For instance, if I do the following in the get method:
QString sUrlRedirect = "ftp://ftp.gatech.edu";
redirect (sUrlRedirect);
Konqueror, will display an error message
"Could not read"
However, If I try :
QString sUrlRedirect = "ftp://ftp.gatech.edu/";
redirect (sUrlRedirect);
Konqueror, will display an error message
"Cound not read /"
In both cases, the Location bar of Konqueror contain
ftp://ftp.gatech.edu AND ftp://ftp.gatech.edu/
respectively. If you just hit the enter key on the Location
bar, Konqueror can resolve these values just fine.
Redirecting to the following MAILTO url:
QString sUrlRedirect = "mailto:blipvert@foo.com";
redirect (sUrlRedirect);
causes the following error to be displayed:
"Could not start process
Unable to create io-slave:
klauncher said: Error loadin 'kmailservice %u'."
but the URL displayed in the Location bar is correct.
(mailto:blipvert@foo.com) If you just hit Enter on
the value it invokes KMail just fine.
The workaround I am using, though I don't like it, is to
send and HTML formatted redirect call using the
'data' method. This works but is hokey.
Any clue what is happening here? How do I
properly redirect to other protocols within my
I/O slave?
Thanks,
Ben Schepens
schepens@mindspring.com
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am creating a I/O Slave (for now "hello" is the
protocol<BR>name I am using).<BR><BR>When I call the 'redirect' method, within
the 'get' method<BR>of the I/O Slave, it only works propely for HTTP types<BR>of
URLs. All others, FTP, MAILTO, etc, will not properly
redirect.<BR><BR><BR>For instance, if I do the following in the get
method:<BR><BR> QString sUrlRedirect = "<A
href='ftp://ftp.gatech.edu"'>ftp://ftp.gatech.edu"</A>;<BR> redirect
(sUrlRedirect);<BR><BR>Konqueror, will display an error message<BR>
"Could not read"<BR><BR><BR><BR>However, If I try :<BR><BR> QString
sUrlRedirect = "<A
href='ftp://ftp.gatech.edu/"'>ftp://ftp.gatech.edu/"</A>;<BR>
redirect (sUrlRedirect);<BR><BR>Konqueror, will display an error
message<BR> "Cound not read /"<BR><BR><BR><BR>In both cases,
the Location bar of Konqueror contain<BR><A
href="ftp://ftp.gatech.edu">ftp://ftp.gatech.edu</A> AND <A
href="ftp://ftp.gatech.edu/">ftp://ftp.gatech.edu/</A><BR>respectively. If
you just hit the enter key on the Location<BR>bar, Konqueror can resolve these
values just fine.<BR><BR><BR>Redirecting to the following MAILTO
url:<BR><BR> QString sUrlRedirect = "<A
href='mailto:blipvert@foo.com"'>mailto:blipvert@foo.com"</A>;<BR>
redirect (sUrlRedirect);<BR><BR>causes the following error to be
displayed:<BR> "Could not start process<BR> Unable
to create io-slave:<BR> klauncher said: Error loadin
'kmailservice %u'."<BR><BR>but the URL displayed in the Location bar is
correct.<BR>(<A href="mailto:blipvert@foo.com">mailto:blipvert@foo.com</A>) If
you just hit Enter on<BR>the value it invokes KMail just fine.<BR><BR><BR>The
workaround I am using, though I don't like it, is to<BR>send and HTML formatted
redirect call using the<BR>'data' method. This works but is
hokey.<BR><BR><BR>Any clue what is happening here? How do I<BR>properly
redirect to other protocols within my<BR>I/O slave?<BR><BR>Thanks,<BR>Ben
Schepens<BR><A
href="mailto:schepens@mindspring.com">schepens@mindspring.com</A><BR><BR><BR><BR><BR></FONT></DIV></BODY></HTML>
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic