Make HTTP/1.1 request with PHP

Posted by ejunker on Stack Overflow See other posts from Stack Overflow or by ejunker
Published on 2010-04-21T16:47:53Z Indexed on 2010/04/21 16:53 UTC
Read the original article Hit count: 155

Filed under:
|

My code is using file_get_contents() to make GET requests to an API endpoint. It looks like it is using HTTP/1.0 and my sysadmin says I need to use HTTP/1.1. How can I make an HTTP/1.1 request? Do I need to use curl or is there a better/easier way?

© Stack Overflow or respective owner

Related posts about php

Related posts about http