I am trying to post the name, email address, and message to this page:
http://zenlyzen.com/test1/index.php?main_page=contact_us
using wget. This command:
wget --post-data 'contactname=test&email=a@a.com&enquiry=testmessage' http://www.zenlyzen.com/test1/index.php?main_page=contact_us\&action=send%20method="post"
saves this page:
http://www.zenlyzen.com/wgettest.html
I've poked around with cookies and session cookies, to no avail.
Thanks in advance,
Mark
Using curl :
mech-dump
command comes withlibwww-mechanize-perl
under Debian and derivateds.Finally :
(replace XXX with your inputs). This should work !
You can use
LiveHttpHeaders
firefox module to see the headers to reproduce.See
man curl
to understand all the switches.