New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl calls not working behind proxy and no curl proxy support #64
Comments
Also added proxy port
|
Maybe I can shed some light on this problem as we face a similar one. When the server is behind a proxy all curl requests which return headers will have extra headers of the proxy. those extra headers are separated by two line breaks. And that's the actual problem. As the API class explodes the API response by two line breaks and uses only the first two occurrences there won't be the header data in the first part and the JSON in the second with a proxy. It would be the header data of the proxy in the first part and the header data of instagram in the second. The JSON would be third The response with a proxy can look like this: HTTP/1.1 200 Connection established HTTP/1.1 302 Found {"pagination": {"next_max_id": .. Without proxy it would be: HTTP/1.1 302 Found {"pagination": {"next_max_id": .. Maybe it's better to not use the first two parts of the response but the last two. This should always be the last header data and the JSON data no matter on many proxies are in the way. I'm willing to create a pull request if there is a chance that you accept it. |
Ping. Is there any chance that my pull request will get merged? |
We have this issue.
It does not seem to be supported in this class...
Is this the code to be added to make this work?
variables:
The code to be added at the curl calls:
getters & setters
The text was updated successfully, but these errors were encountered: