I need to make http request to custom url using php.. any way to forward raw http header to given url..
POST http://myapp.com/register HTTP/1.1
Kraken-Agent: kraken 1.0_101 / Android 4.2.1
Content-Type: application/json; charset=utf-8
User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.2.1; SM-E700H Build/JOP40D)
Host: myapp.com
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Length: 717
{"android_version":"4.2.1"}
How to make this request using php.