Forum Moderators: bakedjake
I want to get page source with wget and i want to give some variable value with POST method.
with this url, the POST variable name is "example_name" and i want to apply value "testing"to it.
So in php source it would look like:
$_POST["example_name"]="testing";
But i want to know the excact command line in linux to do that operation.
something like
wget --post-data=STRING www.url.com
but with the corect syntax.
thnx
With the excact info:
wget --post-data 'example_name=testing' www.url.com
But with that method i get problems in PHP functions exec and popen.
Error comes with --post-data ' ' -- i think it gets confused because of the coates.
Allso i don't want to save it to a file with wget.
I am really interested - how to do that(-post_data) with lynx.