Re: How to Diagnose http_get() Error (Returning -2)
- Posted by jimcbrown (admin) Dec 04, 2017
- 1505 views
euphoric said...
My http_get() call is returning -2 to a particular URL, but not to others. This particular URL is valid (can be reached in a browser), so I'm not sure what the -2 means. Anyone have a clue there?
That's ERR_INVALID_PROTOCOL. Are you trying https (which is still unsupported) or maybe using an ftp url? Or maybe you just forgot to include the http: part!