?
Solved

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

Posted on 2003-03-15
4
Medium Priority
?
315 Views
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 194.3.4.68:8000 (connect: Unknown error)

What I'm trying to do is to connect to a website through a proxy using the commands:
$MYPROXY="194.3.4.68:8000";
$ua->no_proxy;
$ua->proxy('http',"http://$MYPROXY");

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?!?



0
Comment
Question by:aniston
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
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?
0
 

Author Comment

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

0
 
LVL 20

Expert Comment

by:jmcg
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.
0
 

Author Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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

770 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