Hi, I'm sure you must have already sorted out this issue by this time. But I just wanted to share my problem too here, so others can have this information. Also, please share your solution on this issue. I had the similar issue with LWP.UserAgent complaining "bad hostname" for whatever the host we give irrespective of the proxy url setup on the agent. All the hosts works just fine when we access them in the browser. We get response to nslookup and ping for all the hosts. Strange thing is that (my script) same script worked just fine when I tried with v5.8.8 and tomcat apache on solaris. But the same script fails when I use ActivePerl on windows xp. I tried to google for the solution and possible causes of this issue, but no luck :( My solution: I tried the same script in one of my friend's desktop where he was using apache instead of tomcat apache with the same ActivePerl. It just worked fine. So, I too ended up in installing and using apache instead of tomcat apace which worked well for me too. If somebody has more information on this issue and a resolution for this, please share! Thanks A PERL newbie!

In reply to Re^3: LWP::UserAgent always complains about Hostname by Anonymous Monk
in thread LWP::UserAgent always complains about Hostname by Herkum

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.