Re: lynx and google.com
On Sun, 30 May 2004 01:20:28 +0200, Albert Cahalan wrote:
> I think we're getting proxied by Comcast. I have lynx
> in two places, neither of which has been recently upgraded.
*hmmm* I'm finding the same thing on ntl (UK) though lynx works fine from
my sourceforge account.
> 1. how do I verify my suspicion
This little perl script will fetch and print the headers and body for a
single URL (supplied as a command line parameter), so you'll get more info
than in lynx.
#!/usr/bin/perl
use LWP::UserAgent;
my $ua = LWP::UserAgent->new(env_proxy => 0,
keep_alive => 1,
timeout => 30,
debug => 1
);
my $body = $ua->get($ARGV[0]);
print $body->as_string;
running this with 'www.google.com' gives '400 URL must be absolute' though
'http://www.google.com' works fine in it.
> 2. how do I get past this
You could use w3m, or create a local html doc with this code snippet in it:
<form action="http://www.google.com/search">
<input maxLength="256" size="30" name="q" value="">
<input type="submit" value="Google Search" name="btnG">
</form>
--
Stephen Patterson http://patter.mine.nu/
steveSPAM@.patter.mine.nu remove SPAM to reply
Linux Counter No: 142831 GPG Public key: 252B8B37
Caution: breathing may be hazardous to your health.
Reply to: