[mythtv-users] OT: How to submit form, retreive web page and save it to a file?

Jason Lee mythtv at theleehouse.net
Thu Apr 22 17:34:52 EDT 2004


William wrote:

> I am preparing to write a ppv listing utility for Dishnetwork and I am
> stumped as to how to pull the info I need from the provider's web site. What
> I need to do is to be able to fake the submission of a html form and then
> retreive the data returned. I don't think that 'wget' supports the ability
> to send form data and I didnt see any command line hooks into Mozilla.
> Please correct me if I am wrong on the above programs.

This might help if you're using PHP:

http://www.php.net/manual/en/ref.curl.php

Of course, curl has bindings for roughly half a bazillion languages, so 
the reference still might help.  There is a command line utility called 
curl, that has a POST data option, but I've never used that.  The man 
page *might* help, or you can check out the curl home page at 
http://curl.haxx.se/.

-- 
jason lee
Steeplesoft -- http://www.steeplesoft.com
README.txt  -- http://jason.theleehouse.net
Bosco       -- http://bosco.sourceforge.net


More information about the mythtv-users mailing list