Curl - Resolve "curl: (35) SSL received a record that exceeded the maximum permissible length."

by
Jeremy Canfield |
Updated: February 23 2023
| Curl articles
Let's say you are submitting a GET request to an endpoint using HTTPS.
curl --request GET --url https://www.example.com/api
And the following is being returned.
curl: (35) SSL received a record that exceeded the maximum permissible length.
This typically means that the API is not configured to use HTTPS. You can simply try submitting the request using HTTP.
curl --request GET --url http://www.example.com/api
Did you find this article helpful?
If so, consider buying me a coffee over at
Comments
September 14 2023 by interwebz_2021
Excellent article. Straight to the point and concise. I had an HTTP server listening on 443, and just did https out of habit. You saved me a ton of time and trouble.