Solved

LWP::UserAgent problem

Posted on 2009-04-10
4
409 Views
Last Modified: 2012-05-06
Hi All,
I am trying to access a webpage using LWP::UserAgent module but i am receiving "500 Internal Server error" message.  I have full access to the webpage and also i am ableto access the web page manually thru a web browser.  Also, the code appears to work with other sites which have developed by me and my collegues except for this page.  Please assist!!!
0
Comment
Question by:Venkatesan_G02
4 Comments
 
LVL 13

Expert Comment

by:kawas
ID: 24122520
The code probably works in your browser because it is more forgiving ... try looking in the error logs to see what the problem is.
0
 
LVL 39

Accepted Solution

by:
Adam314 earned 250 total points
ID: 24127160
It is likely that you aren't sending the information in the exact way the server is expecting.  If you are trying to fill out forms, and submit information, you might want to use the WWW::Mechanize module instead, which makes it easier to do this kind of stuff.
0
 
LVL 2

Assisted Solution

by:lyhan
lyhan earned 250 total points
ID: 24346512
Some website block the useragents other than the well known web browsers

LWP::UserAgent has the default agent "libwww-perl/#.###",

you may need to set the agent to mozilla, i.e

 $ua->agent('Mozilla/5.0');

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now