Title: Message
I believe this line:
 
$req->content('query=libwww-perl&mode=dist');
 
is your problem.  Anyway, it's what apparently kills the script for me, particularly against yahoo (if I remove it and the proxy settings (which I don't need) it runs successfully for me).  Am I correct that you listed this code off a tutorial page?  It looks like this relates specifically to CPAN (since if I run it against CPAN it does work, though I do notice you changed a POST to a GET, and it's the POST that works against CPAN).
 
I also noticed that your attached "STATFILE" indicates "forbidden", not "not found".  .  . I'm not sure the significance of this. . .
 
 

Sam Gardner

GTO Application Development

Keefe, Bruyette & Woods, Inc.

212-887-6753



-----Original Message-----
From: Lasher, Brian [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 11:53 AM
To: Gardner, Sam; Perl-Win32-Users
Subject: RE: LWP help

Lwp_example.pl is script.  STATFILE is output.  I changed the "proxy server" info to protect TI proprietary data, and changed the site that is being accessed (although result is the same).

 

 

Brian Lasher

Catalog DSP Product Engineering

Best Practices and Yield Enhancement Team

[EMAIL PROTECTED]

281-274-2913(W)

281-684-4699(C)

713-664-6240(H)

281-274-2279(F)

 

-----Original Message-----
From: Gardner, Sam [mailto:[EMAIL PROTECTED]
Sent:
Tuesday, October 26, 2004 1:07 PM
To: Lasher, Brian; Perl-Win32-Users
Subject: RE: LWP help

 

Kind of hard to tell, w/o seeing the script or knowing what page it is. . .

 

 

Sam Gardner

GTO Application Development

Keefe, Bruyette & Woods, Inc.

212-887-6753

 

-----Original Message-----
From: Lasher, Brian [mailto:[EMAIL PROTECTED]
Sent:
Tuesday, October 26, 2004 1:29 PM
To: Perl-Win32-Users
Subject: LWP help

I wrote a script using the LWP module.  At first I got error 500 (something about server does not exist).  Realized by reading the docs that I had to define my proxy server.  Not getting that error now, so I assume that fix worked.  Now I'm getting error 404 (doc not found) for a site that I know is correct.  Script replies the following:

 

CODE:       404

STATUS:     404 Not Found

CONTENT:    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>404 Not Found</title>

</head><body>

<h1>Not Found</h1>

<p>The requested URL /04-05RD.txt was not found on this server.</p>

<hr />

</body></html>

 

 

Anyone seen this?  Is there something people can do to prevent LWP from pulling data from their server?  Is there something I'm missing?

 

-brian

 

 

 

Brian Lasher

Catalog DSP Product Engineering

Best Practices and Yield Enhancement Team

[EMAIL PROTECTED]

281-274-2913(W)

281-684-4699(C)

713-664-6240(H)

281-274-2279(F)

 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to