Simple HTTP support

Jonas Drewsen jdrewsen at nospam.com
Sat Feb 26 14:34:26 PST 2011


On 25/02/11 16.12, Adam Ruppe wrote:
> I've made a very simple curl wrapper:
>
> http://arsdnet.net/dcode/curl.d
>
> It is meant to provide trivial get and post support:
>
> string response = curl("http://mywebsite.com"); // contains the response
>
> curl("http://mywebsite.com", "var=something&v2=moe"); // do a POST
>
>
> There's functions in my module to do cookies and other things too,
> but those functions are kinda ugly. (I just whipped them together to
> work without worrying about beauty.)

I'll have a look at it.

Thanks,
/Jonas


More information about the Digitalmars-d mailing list