For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2005 > LWP:Simple/LWP:UserAgent (newbie)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author LWP:Simple/LWP:UserAgent (newbie)
Anna

2005-02-24, 3:56 pm

Hello,
To start off with I need to explain that I am definately a novice at
using Perl. I have inherited a couple of access databases that call on
perl scripts to scrape data from the internet. They were working just
fine until the beginning of this w. From reading posts on here and
doing some investigation on my own I have learned that the company I
work for has changed how the internet is accessed and now uses a proxy
server. (Again, I am a bit of a computer novice and don't understand
all the technical jargon) I am trying to learn if there is an easy way
to fix the code on my programs so they will be able to work again.
Currently all the files that ususally contain teh data as it is scraped
from the web come back blank.

I think I need to use the LWP:UserAgent but i dont understand it very
well When it talks about environmental variables is it talking about
the server or my computer?

Any help someone could provide would be greatly appreciated and I
appologize in advance for my lack of general knowledge of computers and
perl. thank you

Anna

John Bokma

2005-02-24, 8:55 pm

Anna wrote:

> I think I need to use the LWP:UserAgent but i dont understand it very
> well When it talks about environmental variables is it talking about
> the server or my computer?


Your computer, see:

http://search.cpan.org/~gaas/libwww...ook.pod#PROXIES

and:

http://search.cpan.org/~gaas/libwww...WP/UserAgent.pm
under "$ua->env_proxy"


--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com