문제

Is there a way to send POST data using HTTP headers without a form from PHP?

도움이 되었습니까?

해결책

Sure, you can create a valid http request with your specified POST parameters easily using a library like cURL.

See this for a curl example

If you are limited to plain PHP you can create your own (valid) http-request, see example

다른 팁

I don't think you can. You might want to use sessions, cookies, hidden forms or $_GET

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top