Posted on 2008-01-05 04:31:37-08 by praksheee
Proxy server
Hey I have download all the modules req for this module and den downloaded it but it never worked for me..Is it becouse I have a proxy server at my campus and we are connected to outer network throught that??? I really dont know but this nodule didnt work for me
Direct Responses: 6810 | Write a response
Posted on 2008-01-05 04:54:12-08 by kbocek in response to 6809
Re: Proxy server
Check out the WWW::Mechanize FAQ. It looks like you are correct, my module as written won't work behind a proxy. If you are up to modifying the module you've installed, go to 'sub getyahoodata'. Right after the line:
my $q = WWW::Mechanize->new();
add the line recommended in the faq. For example:
$q->proxy(['http', 'ftp'], 'http://proxy.example.com:8000/');
Let me know if that works. If so, I'll address this issue in the next update. Kirk Bocek
Direct Responses: 6827 | Write a response
Posted on 2008-01-08 13:03:43-08 by praksheee in response to 6810
Re: Proxy server
ohh all in vain nthing is working..does this module work well with WINXP. I am a newbie learning perl so dont know much in programming I used following lines to make my program
use Finance::QuoteOptions; my $q=Finance::QuoteOptions->new('QQQQ'); die 'Retrieve Failed' unless $q->retrieve;
and after that just tried to retrieve call option but my program always fail on third line
Direct Responses: 6828 | 6829 | Write a response
Posted on 2008-01-08 13:28:32-08 by praksheee in response to 6827
Re: Proxy server
hey is there any other way to connect to yahoofinance and retrieve option data(I need this urgently to complete my project)??
Direct Responses: Write a response
Posted on 2008-01-08 16:01:51-08 by kbocek in response to 6827
Re: Proxy server
Did you add the proxy line? What is the output of
$q->response()
and
$q->status()
after you issue the retrieve command? Kirk Bocek
Direct Responses: 6830 | Write a response
Posted on 2008-01-08 16:56:47-08 by praksheee in response to 6829
Re: Proxy server
I didnt get any output whe I used these commands removing die:( moreover I tried to ping yahoo using "command"It showed test failure:(
Direct Responses: 6832 | 6833 | Write a response
Posted on 2008-01-08 19:47:25-08 by kbocek in response to 6830
Re: Proxy server
Okay, Prakshee, I've uploaded version 0.13 of my module. I don't know how long it will take to show up on whatever mirror you are using. This adds a 'proxy' option to each query object. Set it before issuing the 'retrieve' command. For example:
use Finance::QuoteOptions; my $q=Finance::QuoteOptions->new('QQQQ'); $q->proxy('http://proxy.example.com:8000/'); die 'Retrieve Failed' unless $q->retrieve;
Please let me know if this works for you. Kirk Bocek
Direct Responses: Write a response
Posted on 2008-01-08 19:59:40-08 by kbocek in response to 6830
Re: Proxy server
Whoops! Do *not* use 0.13. I've uploaded 0.14 which fixes a problem. Kirk Bocek
Direct Responses: 6837 | Write a response
Posted on 2008-01-09 05:55:40-08 by praksheee in response to 6833
Re: Proxy server
thanks
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.