Curently if you make requests to urls using fopen or file_get_contents, php uses HTTP/1.0 protocol. I have a situation in which the server answers back using HTTP/1.1 (it shouldn't but it does and i can't do anything about it 🙁 ) and is sending the response using Transfer-Encoding=chunked. Because of this the response gets corupted.
Is there a way to recompile php to use http/1.1 on requests to external urls ?
PS: I don't want to use other packages / functions (curl,fsockopen, . . .)