HTTP::Response decoded_content is undefined
- From: "timlegge" <timlegge@xxxxxxxxx>
- Date: 28 Mar 2007 05:04:37 -0700
Hi
I had a script that was able to parse the decoded_content for the
forms in a html page. However, a recent update to the page broke the
script ( @forms = HTML::Form->parse($response->decoded_content,
$response->base);) was unable to find the forms in the web page.
After much research I found that the decoded_content was empty but the
call to parse seemed happy with HTML::Form->parse($response->content,
$response->base); instead.
It looks like the issue may have been caused by the addition of a meta
tag to the html page:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
so far, I have been unable to prove that as the page is generated via
compiled javascript and is painful to change.
Any idea whether this meta tag would cause an issue with
decoded_content and whether there might be a work around...
Tim
.
- Follow-Ups:
- Re: HTTP::Response decoded_content is undefined
- From: jzhang
- Re: HTTP::Response decoded_content is undefined
- Prev by Date: Re: win32 modules
- Next by Date: Log4perl module for cygwin newbie
- Previous by thread: win32 modules
- Next by thread: Re: HTTP::Response decoded_content is undefined
- Index(es):
Relevant Pages
|
|