Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php simulating form submit

Can I simulate or "fake" form submit action by sending same headers to server like browser do? I'm not sure if it is need to send something else except of headers. Where can I see which headers were sent by browser and how to send them with PHP? Thank you.

like image 514
Jirik Avatar asked Oct 19 '25 17:10

Jirik


1 Answers

You can use cURL for this porpose. cURL example using php, you can see here.

For POST request http://beamtic.com/curl-http-post-requests

For GET request http://beamtic.com/curl-http-get-request

like image 157
rapidRoll Avatar answered Oct 21 '25 07:10

rapidRoll