PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
GET http://www.example.com/path HTTP/1.0
Host: www.example.com
- The request URI is the full thing including protocol
- The Host: is the hostname for the requested resource, not for the proxy itself
Or you could use cURL instead. It takes care of absolutely everything for you so you don't have to skip bothering to learn how these kinds of HTTP requests and responses actually work.