Re: http_get.e -- LINUX CODE
- Posted by ghaberek (admin) Nov 22, 2018
- 1355 views
SDPringle said...
Also, it wouldn't be such a bad idea to adopt this for std/net/http.
I think it'd be a great idea to integrate this into std/net/http. We can use curl on Linux/OSX and WinInet on Windows.
By the way, I've had a complete WinInet wrapper written for a while now: https://github.com/ghaberek/WinInet/. cklester has been using it in his projects.
You can use HttpGetRequest() as a drop-in replacement for http_get(). I can add in HttpPostRequest() if someone's going to be using it.
-Greg