curl: catching exception on connect.

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 2 05:19:40 PST 2014


> connect() sends a "CONNECT" request to the server, as defined 
> by HTTP [1]. This method is only used when you're working with 
> proxies and the like. What you most likely want, however, is a 
> "GET" request. Use get() for that.

So what is the best way to check status server response (400, 404 
etc) to send get request and try to parse response, or there is 
any better way (probably with another lib?)?


More information about the Digitalmars-d-learn mailing list