I want to catch with "file_get_contents" or some other method the result of a combined GET/POST request in a file.
The URL already contains some GET Variables like for example
https://www.example.com/?var1=val1&$var2=val2
and I want to catch the result of a POST like
<form action="https://www.example.com/?var1=val1&$var2=val2">
<input type="hidden" name="var3" value="val3">
<input type="submit" name="var4" value="val4">
</form>
can someone please give some hints ? or point to some documentation?
UPDATE: (my english is also not so good) this is why I will go on with asking in a more complex way.
Bart shows here a example how file_get_contents can make a post. What I am missing is how to also send the POST vars (text/hidden/radio/submit) in this example. Hope now its more clear.