Re: [elinks-users] Local CGI Questions
On Mon, Jun 19, 2006 at 07:20:04PM -0700, Steve Holmes wrote: > On Tue, Jun 20, 2006 at 01:41:58AM +, Miciah Dashiel Butler Masters wrote: > > ELinks is converting that argument to a URI, which process encodes the > > question mark and ampersands. In fact, don't you get a file-not-found > > error? Try providing a URI: > > > >elinks 'file:///home/me/cgi-bin/printenv.cgi?value1&value2' > > Very interesting indeed. I tried using the whole path (with my own name > of course) and it worked! I got a populated QUERY_STRING and some > debugging stuff I added at the bottom using the CGI perl module started > working too. I originally was using just 'cgi-bin/printenv?blabla' > without the tick marks and I found the script ok but I had the problems > previously noted. I thought the cgi-path was supposed to help without > having to spell out the entire path of the original script. May that > path comes in if I specify the name on a form action attribute or > something. Anyway, this answer from you gets me past this herdle. > > Now on to some real CGI programming:). I messed with php some before > but the neet thing about this CGI deal is I can run some full screen > apps without having to run the apache server on this box and I don't > have to master curses or any of that; just some good ol' simple console > apps with workable forms. Gee, I could maybe even slip in some > javascript:). But then again, I don't know javascript yet:). > > Anyhow, thanks again for the reply; this may do the trick. ELinks has to decide whether the arguments that are provided on the command line are regular paths or whether they are URIs. The heuristic is that if it parses as a URI, it is a URI; else, assume that it is a path and convert it to a URI. This conversion requires that special characters be encoded. Filenames can contain question marks, but the user might also mean question marks to mark query strings. The compromise in ELinks is simple, predictable, and usually intuitive (I think). We could do some fancy guesswork, checking whether the path up to the question mark identifies an existent file or whether the path including the question mark and the text after identifies an existent file, which might make it more intuitive (for some people) but would certainly diminish the predictability and simplicity. You can still use a relative path with a URI: elinks file:./public_html/cgi-bin/printenv?blabla HTH, -- Miciah Masters <[EMAIL PROTECTED]> / <[EMAIL PROTECTED]> ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Local CGI Questions
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On Tue, Jun 20, 2006 at 01:41:58AM +, Miciah Dashiel Butler Masters wrote: > ELinks is converting that argument to a URI, which process encodes the > question mark and ampersands. In fact, don't you get a file-not-found > error? Try providing a URI: > >elinks 'file:///home/me/cgi-bin/printenv.cgi?value1&value2' Very interesting indeed. I tried using the whole path (with my own name of course) and it worked! I got a populated QUERY_STRING and some debugging stuff I added at the bottom using the CGI perl module started working too. I originally was using just 'cgi-bin/printenv?blabla' without the tick marks and I found the script ok but I had the problems previously noted. I thought the cgi-path was supposed to help without having to spell out the entire path of the original script. May that path comes in if I specify the name on a form action attribute or something. Anyway, this answer from you gets me past this herdle. Now on to some real CGI programming:). I messed with php some before but the neet thing about this CGI deal is I can run some full screen apps without having to run the apache server on this box and I don't have to master curses or any of that; just some good ol' simple console apps with workable forms. Gee, I could maybe even slip in some javascript:). But then again, I don't know javascript yet:). Anyhow, thanks again for the reply; this may do the trick. - -- HolmesGrown Solutions The best solutions for the best price! http://holmesgrown.ld.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFEl1tSWSjv55S0LfERA3gWAKCkEGlaydRTfwEw0fHpiSyRg3iPkQCfVXv4 jTZz/dyvxEli4v35iXZuCDE= =CjEM -END PGP SIGNATURE- ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Local CGI Questions
On Mon, Jun 19, 2006 at 03:44:59PM -0700, Steve Holmes wrote: > Sorry for replying to my own post but an additional test of this CGI > script with my local apache server did show a valid QUERY_STRING so it > is inside elinks when it is always blank. Just an additional note. > > On Mon, Jun 19, 2006 at 03:08:19PM -0700, Steve Holmes wrote: > > I'm interested in developing some scripts to run locally with elinks as > > CGI. To begin with, I'm trying a really simple perl script that does > > little more than print the local environment with names and values of > > all environment variables. For whatever reason, the variable, > > QUERY_STRING is always "" even though I pass data in the URI. > > > > Here's how I test it for now. I just type "elinks > > cgi-bin/printenv.cgi?value1&value2" or other variants. I don't have any > > html or forms or any of that yet; I just wanna be sure I can pick up the > > environments and pass get and post variables. I have the option in > > elinks for CGI turned on and I have my bin set to "~/cgi-bin". This > > would be a cgi-bin in my own personal directory. Also, I'm using elinks > > version 0.11.1 and wonder if I'm doing this all wrong or if I'm doing it > > too simply or what. I do get all the other environment variables but > > QUERY_STRING is always blank no matter what I put in after the trailing > > question mark. ELinks is converting that argument to a URI, which process encodes the question mark and ampersands. In fact, don't you get a file-not-found error? Try providing a URI: elinks 'file:///home/me/cgi-bin/printenv.cgi?value1&value2' > > Any ideas? I think elinks will be a wonderful tool for simple local apps > > where forms screens are needed. Indeed. GITweb and info2html are nifty CGI scripts, and Witek wrote a CGI script for FSP support before he implemented built-in support. I'd love to know of other useful CGI scripts that work with ELinks. -- Miciah Masters <[EMAIL PROTECTED]> / <[EMAIL PROTECTED]> ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Local CGI Questions
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Sorry for replying to my own post but an additional test of this CGI script with my local apache server did show a valid QUERY_STRING so it is inside elinks when it is always blank. Just an additional note. On Mon, Jun 19, 2006 at 03:08:19PM -0700, Steve Holmes wrote: > I'm interested in developing some scripts to run locally with elinks as > CGI. To begin with, I'm trying a really simple perl script that does > little more than print the local environment with names and values of > all environment variables. For whatever reason, the variable, > QUERY_STRING is always "" even though I pass data in the URI. > > Here's how I test it for now. I just type "elinks > cgi-bin/printenv.cgi?value1&value2" or other variants. I don't have any > html or forms or any of that yet; I just wanna be sure I can pick up the > environments and pass get and post variables. I have the option in > elinks for CGI turned on and I have my bin set to "~/cgi-bin". This > would be a cgi-bin in my own personal directory. Also, I'm using elinks > version 0.11.1 and wonder if I'm doing this all wrong or if I'm doing it > too simply or what. I do get all the other environment variables but > QUERY_STRING is always blank no matter what I put in after the trailing > question mark. > > Any ideas? I think elinks will be a wonderful tool for simple local apps > where forms screens are needed. > > Thanks for any possible help. > > -- > HolmesGrown Solutions > The best solutions for the best price! > http://holmesgrown.ld.net/ > ___ > elinks-users mailing list > elinks-users@linuxfromscratch.org > http://linuxfromscratch.org/mailman/listinfo/elinks-users > > - -- HolmesGrown Solutions The best solutions for the best price! http://holmesgrown.ld.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFElyjqWSjv55S0LfERA/z+AJ0ZfQQ5weTzoyD6+rv5wPj1oqnOgQCgldZ3 FqcBugcbSXnk+UBvGb9g3UE= =GSCf -END PGP SIGNATURE- ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Windows port
Alejandro Jakubi <[EMAIL PROTECTED]> wrote Tue, Jun 13, 2006: > The freshmeat page http://freshmeat.net/projects/elinks states: > > [Operating System] BeOS, MacOS X, Microsoft :: Windows, > > Is there a Windows binary available for download? False marketing, there was presumably someone who started a win32 port. But it never got finished. You'll have to run ELinks on top of Cygwin to have it run on Windows. -- Jonas Fonseca ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] elinks popen and coloured dump
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote Tue, Jun 13, 2006: > By the way, is it possible to have document colours except for visited links > (would like to have them always in yellow) Not really, only customization of the active link is supported. You could however try to echo "a:visited { color: yellow; }" into ~/.elinks/user.css and set the appropriate colors to load it. But document colours will probably override it in most cases and we don't support the CSS !important thing. -- Jonas Fonseca ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
[elinks-users] Local CGI Questions
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I'm interested in developing some scripts to run locally with elinks as CGI. To begin with, I'm trying a really simple perl script that does little more than print the local environment with names and values of all environment variables. For whatever reason, the variable, QUERY_STRING is always "" even though I pass data in the URI. Here's how I test it for now. I just type "elinks cgi-bin/printenv.cgi?value1&value2" or other variants. I don't have any html or forms or any of that yet; I just wanna be sure I can pick up the environments and pass get and post variables. I have the option in elinks for CGI turned on and I have my bin set to "~/cgi-bin". This would be a cgi-bin in my own personal directory. Also, I'm using elinks version 0.11.1 and wonder if I'm doing this all wrong or if I'm doing it too simply or what. I do get all the other environment variables but QUERY_STRING is always blank no matter what I put in after the trailing question mark. Any ideas? I think elinks will be a wonderful tool for simple local apps where forms screens are needed. Thanks for any possible help. - -- HolmesGrown Solutions The best solutions for the best price! http://holmesgrown.ld.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFElyBQWSjv55S0LfERA5IrAJ9LPbIftp8CQ8I60gCbmP5F6mxwBACfRlfi 9NpPTQL3L4bs6kNJYm5HN7g= =e7wx -END PGP SIGNATURE- ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users