blackdtools / Blackd-Proxy-CLASSIC

Blackd Proxy CLASSIC
MIT License
9 stars 7 forks source link

http client! $httpget:http://example.org/foo.php?name=foo&message=bar$ #30

Closed divinity76 closed 9 years ago

divinity76 commented 9 years ago

i want a http client, to send off messages to a server. I have made a small http GET client, with it (and the urlencode function i made), i can do stuff like

$httpget:http://example.org/msg.php?name={$urlencode:{$lastsender$}$}&message={$urlencode:{$lastmsg$}$}$

and BlackD will do a HTTP GET request to http://example.org/msg.php?name=Blackd%20Proxy&message=What%20Are%20You%20Doing%3F

and return the result from the website!

There are a few caveats though: I have made a very simple HTTP client with Winsock, and it does not support encryption, HTTPS, connection-encoding GZIP/deflate/sdch, HTTP REDIRECT's, nor any of that fancy stuff... if we want to support all of that, i suggest we integrate LibCURL