Hi,
I have wrote several programs using the LWP::UserAgent class to send request and parse the information received; however, there seemed to be problems when I try to retrieve the content of certain ASP websites. I use the typical setup:
$ua = LWP::UserAgent->new;
$cookie_jar = HTTP::Cookies->new;
$ua->cookie_jar($cookie_jar);
$request = HTTP::Request->new(GET => $url);
$response = $ua->request($request);
When I tried to run the program, it just hangs. What I'm suspecting is that ASP is not very friendly toward non-Netscape-IE browsers. The same thing happens when I try to access the website using Lynx on my unix box - it just hangs trying to make connection to the server. One such problem website is "http://www.us.buy.com". Can anyone verify if the same thing happens using Lynx? Does anyone have the same problem and how do you get around this programming wise? Any help is appreciated. Thank you.
-mobi
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.