-
Notifications
You must be signed in to change notification settings - Fork 498
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
Works in Localhost does not work in webserver #235
Comments
Are you running your code behind a firewall or proxy on the web server? |
the remote server is probably using a newer TLS version than your webservers cURL supports (i.e. TLS v1.2). If you are unable to update the webservers cURL, then set Requests_Transport_fsockopen as the preferred transport method with Requests::add_transport.
Sadly overriding the preferred transport method does not work in this library (yet), so I forked my own and fixed Requests::add_transport() there: I've iniated a pull request too: |
I am trying to fetch contents from
Above code works fine when we run on localHost But I get
PhP Error Shows
`
`
when run on webserver, is there any way to fix this?
The text was updated successfully, but these errors were encountered: