Re: How to Diagnose http_get() Error (Returning -2)
- Posted by ghaberek (admin) Dec 04, 2017
- 1488 views
jimcbrown said...
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!
I'd wager that's the case as well. I recommend using libcurl instead.
-Greg