Kong / unirest-php

Unirest in PHP: Simplified, lightweight HTTP client library.
http://unirest.io/php
MIT License
1.28k stars 328 forks source link

Header info is empty #117

Open Epimetheus84 opened 7 years ago

Epimetheus84 commented 7 years ago

I have an open_basedir setting in my php.ini file, and when I send url I have a Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in ..../mashape/unirest-php/src/Unirest/Reguest.php:430. With this warning a have an empty header_information, but in send() function, answer is cut, and part of data has been lost. How to fix this without changing open_basedir settings?