Feb 18, 2014, 2:02 PM
Post #2 of 19
Re: [limner] need help: program retrieving html
[In reply to]
Its really difficult to definitively suggest what could be the cause of yours issues without knowing the URL you are trying to hit.
1) You are a bot. Perhaps try setting the agent to your own legitimate user agent: http://whatsmyuseragent.com/.
2) It looks as though you are trying to provide URL parameters while instantiating a HTTP::Request object. From looking at the documentation, it doesn't look as though you can provide URL parameters in this way ( it accepts method, uri, header, content ). Append the parameters to the URL directly or by using the URI module / query_form method.
I advise testing your code on one of your own sites first to ensure it is working as expected, before attempting to adjust for another site, which may have restrictions in place.
(This post was edited by Zhris on Feb 18, 2014, 2:06 PM)