Re: Why getprint failed
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 10 Jan 2006 09:46:03 -0800
Wuming Gong wrote:
> Dear list,
This is not a list. It is a Usenet Newsgroup. The difference is
significant.
> I want to wrap this page
> (http://www.dharmacon.com/sidesign/default.aspx?source=0) by perl
> script, using LWP::UserAgent.
1) I don't know what "wrap" is supposed to mean in this context
2) Your code below does not use LWP::UserAgent (at least, not
explicitly)
> However, the LWP cannot get the correct content of this page :
>
> $ perl -MLWP::Simple -e
> 'getprint("http://www.dharmacon.com/sidesign/default.aspx?source=0")'
> 500 Internal Server Error
> <URL:http://www.dharmacon.com/sidesign/default.aspx?source=0>
>
> But when I open this URL in firefox, the page can display well.
Not for me, it doesn't. I get back an HTTP 500 error, albeit with a
significant amount of debugging information
If you want to get at the content of this HTTP 500 page, you cannot use
LWP::Simple (it's called "Simple" for a reason). Use the full fledged
LWP::UserAgent to examine the LWP::Response content attribute.
Paul Lalli
.
- Follow-Ups:
- Re: Why getprint failed
- From: Paul Lalli
- Re: Why getprint failed
- References:
- Why getprint failed
- From: Wuming Gong
- Why getprint failed
- Prev by Date: Re: "Use of implicit split to @_ is deprecated"
- Next by Date: Re: Why getprint failed
- Previous by thread: Why getprint failed
- Next by thread: Re: Why getprint failed
- Index(es):
Relevant Pages
|