Troubleshooting of curl errors: Difference between revisions
Jump to navigation
Jump to search
(Created page with "[https://curl.haxx.se/ curl] "is used in command lines or scripts to transfer data."[https://curl.haxx.se/] == How to resolve cUrl error (#5): Unsupported proxy syntax == Con...") |
No edit summary |
||
Line 1: | Line 1: | ||
[https://curl.haxx.se/ | [https://curl.haxx.se/ cUrl] "is used in command lines or scripts to transfer data."[https://curl.haxx.se/] | ||
== How to resolve cUrl error (#5): Unsupported proxy syntax == | == How to resolve cUrl error (#5): Unsupported proxy syntax == | ||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
== How to resolve cUrl error (#56): OpenSSL SSL_read: No error. == | |||
Condition: The curl vesion 7.67.0 on windows met problem. Result of [https://www.php.net/manual/en/function.curl-version.php curl_version] returned: | |||
<pre> | |||
version: Array | |||
( | |||
[version_number] => 475904 | |||
[age] => 5 | |||
[features] => 2953117 | |||
[ssl_version_number] => 0 | |||
[version] => 7.67.0 | |||
[host] => x86_64-pc-win32 | |||
[ssl_version] => OpenSSL/1.1.1d | |||
[libz_version] => 1.2.11 | |||
) | |||
</pre> | |||
Solution: Use other version of curl[https://curl.haxx.se/windows/ curl command] or curl on [https://www.cygwin.com/ Cygwin]. | |||
Related articles | |||
* [https://github.com/curl/curl/issues/4982 cURL error 56: OpenSSL SSL_read: No error information · Issue #4982 · curl/curl] | |||
== References == | == References == |
Revision as of 16:33, 21 May 2020
cUrl "is used in command lines or scripts to transfer data."[1]
How to resolve cUrl error (#5): Unsupported proxy syntax
Condition: the username of socks5 proxy contains @ symbol such as [email protected]
curl_setopt($ch, CURLOPT_PROXY, 'socks5://username:password@localhost:12345'); // result is ok curl_setopt($ch, CURLOPT_PROXY, 'socks5://[email protected]:password@localhost:12345'); // met cUrl error (#5): Unsupported proxy syntax
Solution: Escape the special symbol[1] using URL Encode and Decode - Online or urlencode function
curl_setopt($ch, CURLOPT_PROXY, 'socks5://bob%40email.com:password@localhost:12345'); // result is ok
How to resolve cUrl error (#56): OpenSSL SSL_read: No error.
Condition: The curl vesion 7.67.0 on windows met problem. Result of curl_version returned:
version: Array ( [version_number] => 475904 [age] => 5 [features] => 2953117 [ssl_version_number] => 0 [version] => 7.67.0 [host] => x86_64-pc-win32 [ssl_version] => OpenSSL/1.1.1d [libz_version] => 1.2.11 )
Solution: Use other version of curlcurl command or curl on Cygwin.
Related articles
References
Troubleshooting of ...
- PHP, cUrl, Python, selenium, HTTP status code errors
- Database: SQL syntax debug, MySQL errors, MySQLTuner errors or PostgreSQL errors
- HTML/Javascript: Troubleshooting of javascript, XPath
- Software: Mediawiki, Docker, FTP problems, online conference software
- Test connectivity for the web service, Web Ping, Network problem, Web user behavior, Web scrape troubleshooting
Template