Thread View: news.software.readers
17 messages
17 total messages
Started by Rick Pasotto
Tue, 11 Jul 2000 00:00
slrn and lynx
Author: Rick Pasotto
Date: Tue, 11 Jul 2000 00:00
Date: Tue, 11 Jul 2000 00:00
19 lines
1498 bytes
1498 bytes
I'm running slrn 9.6.2 on debian linux. Recently when I've tried to access a url referenced in an article (shift-U) I've started to get 404's, even though the url is good. I say the url is good because I've cut and pasted it into netscape and also done 'lynx `grep pat article`' and been successful. Is slrn somehow mangling the url? I've tried to add single quotes when the url is at the bottom of the screen but that doesn't help either. An example is: http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake -- Freedom can be lost as surely tax by tax, regulation by regulation, as it can be bullet by bullet, missile by missile. Rick Pasotto email: rickp@vnet.net
Re: slrn and lynx
Author: Sylvan Butler
Date: Tue, 11 Jul 2000 00:00
Date: Tue, 11 Jul 2000 00:00
22 lines
1857 bytes
1857 bytes
On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com> wrote:
>Recently when I've tried to access a url referenced in an article
>(shift-U) I've started to get 404's, even though the url is good. I say
>the url is good because I've cut and pasted it into netscape and also
>done 'lynx `grep pat article`' and been successful. Is slrn somehow
>mangling the url? I've tried to add single quotes when the url is at the
What does lynx show the URL to be when it fails?
>http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake
I suspect you need to have the quotes around the URL in the .slrnrc
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and lynx
Author: kristian ragndahl
Date: Tue, 11 Jul 2000 00:00
Date: Tue, 11 Jul 2000 00:00
21 lines
1387 bytes
1387 bytes
On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com> wrote: : I'm running slrn 9.6.2 on debian linux. : : Recently when I've tried to access a url referenced in an article : (shift-U) I've started to get 404's, even though the url is good. I say : the url is good because I've cut and pasted it into netscape and also : done 'lynx `grep pat article`' and been successful. Is slrn somehow : mangling the url? I've tried to add single quotes when the url is at the : bottom of the screen but that doesn't help either. : : An example is: : : http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake Hmm, i had no troubble with that one (lynx 2.8.3) What is your "set non_Xbrowser"? -- kristian ragndahl, http://www.ragndahl.cx
Re: slrn and lynx
Author: Rick Pasotto
Date: Wed, 12 Jul 2000 00:00
Date: Wed, 12 Jul 2000 00:00
32 lines
2144 bytes
2144 bytes
On 11 Jul 2000 18:49:33 GMT in news.software.readers, kristian ragndahl wrote: > On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com> wrote: > : I'm running slrn 9.6.2 on debian linux. > : > : Recently when I've tried to access a url referenced in an article > : (shift-U) I've started to get 404's, even though the url is good. I say > : the url is good because I've cut and pasted it into netscape and also > : done 'lynx `grep pat article`' and been successful. Is slrn somehow > : mangling the url? I've tried to add single quotes when the url is at the > : bottom of the screen but that doesn't help either. > : > : An example is: > : > : http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake > > Hmm, i had no troubble with that one (lynx 2.8.3) After upgrading to 2.8.3 (I was at 2.8.2) the info screen now shows the above url with the ?=+ characters %-quoted. > What is your "set non_Xbrowser"? set Xbrowser "netscape -remote 'openURL(%s)' &" set non_Xbrowser "lynx %s" -- If philanthropy is not voluntary, it destroys liberty and justice. The law can give nothing that has not first been taken from its owner. -- Frederic Bastiat Rick Pasotto email: rickp@vnet.net
Re: slrn and lynx
Author: Leslie
Date: Wed, 12 Jul 2000 00:00
Date: Wed, 12 Jul 2000 00:00
21 lines
1811 bytes
1811 bytes
On 11 Jul 2000 18:49:33 GMT, kristian ragndahl spake thusly: [re trying to make shift-u behave] =: http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake = =Hmm, i had no troubble with that one (lynx 2.8.3) Oh weird. U calls up 3 URLS in this post, and I can get lynx 2.8.2 (NetBSD) to call up the first and third (ie wwww.ragndahl.cx), but it *won't* do this long funky URL. Claims that: 'Terminal initialisation failed - unknown terminal type' But ONLY for that second URL, the other two work fine! (This is with 0.9.5.6, too) Leslie. Lynx doesn't like slrn and Win98, either. -- ** "If we couldn't laugh, we would all go insane." -- J. Buffett ** *** New to Usenet? Get the FAQS: http://www.faqs.org/faqs/usenet/ *** **** If you love any of your rights, defend all of them. ****
Re: slrn and lynx
Author: Rick Pasotto
Date: Wed, 12 Jul 2000 00:00
Date: Wed, 12 Jul 2000 00:00
23 lines
1839 bytes
1839 bytes
On 11 Jul 2000 16:14:54 GMT in news.software.readers, Sylvan Butler wrote: > On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com> wrote: > >Recently when I've tried to access a url referenced in an article > >(shift-U) I've started to get 404's, even though the url is good. I say > >the url is good because I've cut and pasted it into netscape and also > >done 'lynx `grep pat article`' and been successful. Is slrn somehow > >mangling the url? I've tried to add single quotes when the url is at the > > What does lynx show the URL to be when it fails? The site's 404 error page. > >http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake > > I suspect you need to have the quotes around the URL in the .slrnrc Huh? The url is in the newsarticle I happen to be reading. -- "I'll take unequal justice to equal injustice any day." Rick Pasotto email: rickp@vnet.net
Re: slrn and lynx
Author: Gary Blackie
Date: Wed, 12 Jul 2000 00:00
Date: Wed, 12 Jul 2000 00:00
35 lines
2114 bytes
2114 bytes
rickp@telocity.com (Rick Pasotto) writes: >On 11 Jul 2000 18:49:33 GMT in news.software.readers, kristian ragndahl wrote: >> On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com> wrote: >> : I'm running slrn 9.6.2 on debian linux. >> : >> : Recently when I've tried to access a url referenced in an article >> : (shift-U) I've started to get 404's, even though the url is good. I say >> : the url is good because I've cut and pasted it into netscape and also >> : done 'lynx `grep pat article`' and been successful. Is slrn somehow >> : mangling the url? I've tried to add single quotes when the url is at the >> : bottom of the screen but that doesn't help either. >> : >> : An example is: >> : >> : http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake >> >> Hmm, i had no troubble with that one (lynx 2.8.3) >After upgrading to 2.8.3 (I was at 2.8.2) the info screen now shows the >above url with the ?=+ characters %-quoted. >> What is your "set non_Xbrowser"? >set Xbrowser "netscape -remote 'openURL(%s)' &" >set non_Xbrowser "lynx %s" I'm using slrn 0.9.6.2 and lynx 2.8.3dev21 and the url works fine. In my slrnrc I have: set non_Xbrowser "lynx '%s'" so that the single quotes "protect" the url, whatever it is. Gary
Re: slrn and lynx
Author: Sylvan Butler
Date: Thu, 13 Jul 2000 00:00
Date: Thu, 13 Jul 2000 00:00
39 lines
2769 bytes
2769 bytes
On Wed, 12 Jul 2000 08:02:33 GMT, Rick Pasotto <rickp@telocity.com> wrote:
>On 11 Jul 2000 16:14:54 GMT in news.software.readers, Sylvan Butler wrote:
>> On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com> wrote:
>> >Recently when I've tried to access a url referenced in an article
>> >(shift-U) I've started to get 404's, even though the url is good. I say
>> >the url is good because I've cut and pasted it into netscape and also
>> >done 'lynx `grep pat article`' and been successful. Is slrn somehow
>> >mangling the url? I've tried to add single quotes when the url is at the
>>
>> What does lynx show the URL to be when it fails?
>
>The site's 404 error page.
That is the page you get, but NOT the URL!!! What URL is lynx trying to
access that gives you the 404 page? Not what URL slrn told lynx, but
what is lynx trying to open? (Usually '=' will give it to you, but some
sites redirect all errors to a specific error URL so not always.)
>> >http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake
>>
>> I suspect you need to have the quotes around the URL in the .slrnrc
>
>Huh? The url is in the newsarticle I happen to be reading.
And that URL is passed by slrn to the appropriate "browser" command line
specified in your .slrnrc. One of the fields on that command line is
the URL that slrn is passing to the browser. That URL often needs to be
in quotes.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and lynx
Author: Sylvan Butler
Date: Thu, 13 Jul 2000 00:00
Date: Thu, 13 Jul 2000 00:00
19 lines
1707 bytes
1707 bytes
On Wed, 12 Jul 2000 08:17:29 GMT, Rick Pasotto <rickp@telocity.com> wrote:
>set Xbrowser "netscape -remote 'openURL(%s)' &"
>set non_Xbrowser "lynx %s"
OK, there you go. The "%s" in the above two commands is the URL being
passed to the browser. Notice how the netscape commandline has single
quotes around the URL parameter and the lynx line does not? Try:
set non_Xbrowser "lynx '%s'"
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and lynx
Author: Sylvan Butler
Date: Tue, 18 Jul 2000 00:00
Date: Tue, 18 Jul 2000 00:00
29 lines
2274 bytes
2274 bytes
On Tue, 18 Jul 2000 13:30:59 GMT, Rick Pasotto <rickp@telocity.com> wrote:
>After I upgraded to lynx 2.8.3 pressing '=' gives the correct url
>*except* that the '?', '=', and '+' characters have been converted to
>decimal values. Could *that* conversion be happening before the url is
>passed to lynx or is lynx doing the conversion for display purposes?
I've never known either end to do that conversion. Sounds like it needs
investigating. Do only URLs containing one or more of those characters
fail and the rest succeed?
>I have put single quotes around the %s in .slrnrc and it *still* doesn't
>work.
Grrr.
Try creating a shell script which does nothing but display its
parameters using echo and then it pauses. Replace the pathname to lynx
with the pathname to your script and see if it gets the proper URL.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and lynx
Author: Rick Pasotto
Date: Tue, 18 Jul 2000 00:00
Date: Tue, 18 Jul 2000 00:00
50 lines
3129 bytes
3129 bytes
On 13 Jul 2000 22:15:16 GMT in news.software.readers, Sylvan Butler
wrote:
> On Wed, 12 Jul 2000 08:02:33 GMT, Rick Pasotto <rickp@telocity.com>
> wrote:
> >On 11 Jul 2000 16:14:54 GMT in news.software.readers, Sylvan Butler
> >wrote:
> >> On Tue, 11 Jul 2000 12:10:35 GMT, Rick Pasotto <rickp@telocity.com>
> >> wrote:
> >> >Recently when I've tried to access a url referenced in an article
> >> >(shift-U) I've started to get 404's, even though the url is good.
> >> >I say the url is good because I've cut and pasted it into netscape
> >> >and also done 'lynx `grep pat article`' and been successful. Is
> >> >slrn somehow mangling the url? I've tried to add single quotes
> >> >when the url is at the
> >>
> >> What does lynx show the URL to be when it fails?
> >
> >The site's 404 error page.
>
> That is the page you get, but NOT the URL!!! What URL is lynx trying
> to access that gives you the 404 page? Not what URL slrn told lynx,
> but what is lynx trying to open? (Usually '=' will give it to you,
> but some sites redirect all errors to a specific error URL so not
> always.)
After I upgraded to lynx 2.8.3 pressing '=' gives the correct url
*except* that the '?', '=', and '+' characters have been converted to
decimal values. Could *that* conversion be happening before the url is
passed to lynx or is lynx doing the conversion for display purposes?
> http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake
> >>
> >> I suspect you need to have the quotes around the URL in the .slrnrc
> >
> >Huh? The url is in the newsarticle I happen to be reading.
>
> And that URL is passed by slrn to the appropriate "browser" command
> line specified in your .slrnrc. One of the fields on that command
> line is the URL that slrn is passing to the browser. That URL often
> needs to be in quotes.
I have put single quotes around the %s in .slrnrc and it *still* doesn't
work.
--
"Being an elected Libertarian is like being a designated driver in a bar."
--- Michael Emerling Cloud
Rick Pasotto email: rickp@vnet.net
Re: slrn and lynx
Author: Sylvan Butler
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
28 lines
2458 bytes
2458 bytes
On 20 Jul 2000 17:42:16 GMT, John E. Davis <davis@space.mit.edu> wrote:
>I suspect that you are using a debian version of slrn. Earlier this
>year, it was brought to my attention that a URL such as:
>
> http://xyz.com&;'/bin/whatever
>
>would cause /bin/whatever to execute. I sent the debian folks a
>simple patch that expanded characters such as `&' to `%26' thinking
>that an equivalent URL would be produced. I am not convinced that
>this was the correct solution to the problem.
You should be convinced the other way. :)
It is impossible to fully escape URLs. Proper escaping (which wouldn't
solve the & problem) requires understanding uchars (normal url
characters), pchars (parameter characters) and query characters.
Parameters and queries both specifically the '&' and other characters
and they must not be escaped or else the URL will break.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and lynx
Author: John E. Davis
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
16 lines
1727 bytes
1727 bytes
On 20 Jul 2000 20:21:55 GMT, Sylvan Butler <nospam+_no_Zs__0007@hpb13799z.zboi.hpz.com.invalid> wrote: >It is impossible to fully escape URLs. Proper escaping (which wouldn't >solve the & problem) requires understanding uchars (normal url >characters), pchars (parameter characters) and query characters. >Parameters and queries both specifically the '&' and other characters >and they must not be escaped or else the URL will break. I looked briefly at RFC 2396. My current development code escapes the following: ! ~ * ' ( ) Hopefully this will be enough to avoid malicious URLs and not break any valid ones. --John
Re: slrn and lynx
Author: John E. Davis
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
25 lines
1834 bytes
1834 bytes
On Thu, 20 Jul 2000 12:46:39 GMT, Rick Pasotto <rickp@telocity.com>
wrote:
>http://www.mises.org/fullstory.asp%3Fcontrol%3D461%26FS%3D%2BThe%2BNeoclassical%2BMistake
>
>instead of:
>
>http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake
>
>The '?' has been changed to '%3F', the '=' has been changed to '%3D',
>the '&' has been changed to '%26', and the '+' has been changed to '%2B'.
I suspect that you are using a debian version of slrn. Earlier this
year, it was brought to my attention that a URL such as:
http://xyz.com&;'/bin/whatever
would cause /bin/whatever to execute. I sent the debian folks a
simple patch that expanded characters such as `&' to `%26' thinking
that an equivalent URL would be produced. I am not convinced that
this was the correct solution to the problem.
--John
Re: slrn and lynx
Author: Sylvan Butler
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
40 lines
2730 bytes
2730 bytes
On Thu, 20 Jul 2000 12:46:39 GMT, Rick Pasotto <rickp@telocity.com> wrote:
>On 18 Jul 2000 22:32:36 GMT in news.software.readers, Sylvan Butler
>wrote:
>> Try creating a shell script which does nothing but display its
>> parameters using echo and then it pauses. Replace the pathname to
>> lynx with the pathname to your script and see if it gets the proper
>> URL.
>
>Done. And it demonstrates that slrn is mangling the url.
Interesting, because 0.9.6.2 doesn't do that on my linux system, and
your headers indicate that is what you are using.
Something quite odd is going on here.
>The value of $1 is:
>
>http://www.mises.org/fullstory.asp%3Fcontrol%3D461%26FS%3D%2BThe%2BNeoclassical%2BMistake
>
>instead of:
>
>http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake
So when I hit the 'U' on your article, both of those come up as choices.
I can select either one, and then it comes up at the 'browse' prompt.
Then I press return, and it browses it. No problem.
I compiled my own slrn from the mit sources. Checking quickly, the
sources from MIT have no code in them to do such escapes. Where did you
get your version of slrn?
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: slrn and lynx
Author: Rick Pasotto
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
55 lines
2813 bytes
2813 bytes
On 18 Jul 2000 22:32:36 GMT in news.software.readers, Sylvan Butler wrote: > On Tue, 18 Jul 2000 13:30:59 GMT, Rick Pasotto <rickp@telocity.com> > wrote: > >After I upgraded to lynx 2.8.3 pressing '=' gives the correct url > >*except* that the '?', '=', and '+' characters have been converted to > >decimal values. Could *that* conversion be happening before the url > >is passed to lynx or is lynx doing the conversion for display > >purposes? > > I've never known either end to do that conversion. Sounds like it > needs investigating. Do only URLs containing one or more of those > characters fail and the rest succeed? > > >I have put single quotes around the %s in .slrnrc and it *still* > >doesn't work. > > Grrr. > > Try creating a shell script which does nothing but display its > parameters using echo and then it pauses. Replace the pathname to > lynx with the pathname to your script and see if it gets the proper > URL. Done. And it demonstrates that slrn is mangling the url. set non_Xbrowser "showurl '%s'" <begin showurl script> #!/bin/bash clear echo echo "Using: $1" read junk lynx "$1" </end script> The value of $1 is: http://www.mises.org/fullstory.asp%3Fcontrol%3D461%26FS%3D%2BThe%2BNeoclassical%2BMistake instead of: http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake The '?' has been changed to '%3F', the '=' has been changed to '%3D', the '&' has been changed to '%26', and the '+' has been changed to '%2B'. -- "The state is that great fiction by which everyone tries to live at the expense of everyone else." --Frederic Bastiat Rick Pasotto email: rickp@vnet.net
Re: slrn and lynx
Author: Rick Pasotto
Date: Wed, 26 Jul 2000 00:00
Date: Wed, 26 Jul 2000 00:00
49 lines
3150 bytes
3150 bytes
On 20 Jul 2000 16:02:22 GMT in news.software.readers, Sylvan Butler wrote: > On Thu, 20 Jul 2000 12:46:39 GMT, Rick Pasotto <rickp@telocity.com> > wrote: > >On 18 Jul 2000 22:32:36 GMT in news.software.readers, Sylvan Butler > >wrote: > >> Try creating a shell script which does nothing but display its > >> parameters using echo and then it pauses. Replace the pathname to > >> lynx with the pathname to your script and see if it gets the proper > >> URL. > > > >Done. And it demonstrates that slrn is mangling the url. > > Interesting, because 0.9.6.2 doesn't do that on my linux system, and > your headers indicate that is what you are using. > > Something quite odd is going on here. > > >The value of $1 is: > > > >http://www.mises.org/fullstory.asp%3Fcontrol%3D461%26FS%3D%2BThe%2BNeoclassical%2BMistake > > > >instead of: > > > >http://www.mises.org/fullstory.asp?control=461&FS=+The+Neoclassical+Mistake > > So when I hit the 'U' on your article, both of those come up as > choices. I can select either one, and then it comes up at the > 'browse' prompt. Then I press return, and it browses it. No problem. > > I compiled my own slrn from the mit sources. Checking quickly, the > sources from MIT have no code in them to do such escapes. Where did > you get your version of slrn? As John surmised I'm running debian. I got the sources from space.mit.edu for slang and slrn. In the slang directory I did configure, make elf, make elf-install, ldconfig. Then in the slrn directory I did configure and make which quits with the error message that slang.h doesn't match the slang library version. Debian is probably doing something to cause the conflict but I don't know what that is. -- "Reason and Persuasion are hallmarks of the civil society; Faith and Force are attributes of the primitive and political society" Rick Pasotto email: rickp@vnet.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads