Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


LWP - 500 Internal Server Error Can't connect ???

Posted on 2003-03-15
Medium Priority
Last Modified: 2010-05-18
My version of perl is Active Perl 5.8 for Windows.  I'm making use of the LWP module to make HTTP connections and have been occassionally receiving the following error message:
500 (Internal Server Error) Can't connect to (connect: Unknown error)

What I'm trying to do is to connect to a website through a proxy using the commands:

The error message is being caused exclusively by the proxy.  After receving the error message from within my script I immediately test the proxy within Internet Explorer -- the proxy runs fine.

What must i do to get LWP to handle proxy properly, and consistently?  It seems that LWP isn't interpretting the proxy name properly leading to the internal error?!?

Question by:aniston
  • 2
  • 2
LVL 20

Accepted Solution

jmcg earned 150 total points
ID: 8143437
It looks okay. Have you tried treating this particular error as a transient and just retrying after you get it?

Author Comment

ID: 8144805
Yes, i have retried the proxy after so many seconds.  I suppose i could wait a little longer between calls though.

LVL 20

Expert Comment

ID: 8145450
Well, it's a little puzzling that LWP sees errors frequently and you don't at least occasionally see these errors when going from a browser.

Author Comment

ID: 8146718
thanks for the comment.  Im still receiving errors but I'll just retry, retry, retry...

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question