Possible Duplicate:
How to send HTTP request and retrieve response in PHP (with fine-tuning of headers)?
8.1.4.1 Sample ping request
HTTP request:
POST /api/ra/v1/ping HTTP/1.0
Host: app.test.net
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Content-Type: application/json
"Are you there?"
can someone please help me with some php raw example?
try curl
http://www.php.net/manual/en/curl.examples-basic.php
I made the same thing for a game site, where I would have to constantly log in to use my turns. So instead of that I used curl to sign in, get authorization token and using it, send another request with curl to do certain actions. Then I ran that script with the windows task scheduler.
I have the code somewhere, I’ll look into it when I get home if you still need help with this.