Some examples using sttp "the Scala HTTP client you always wanted!"
We also show the use of a Tor socks proxy
sbt run
Point your browser at localhost:9000
By default the socks proxy is not used, so /poke page will say "proxyEnabled=false" at the top
GET / controllers.AsyncHttpClientFutureController.index
GET /asyncHttpClientFutureController/poke controllers.AsyncHttpClientFutureController.poke
GET /asyncHttpClientFutureController/post controllers.AsyncHttpClientFutureController.post
GET /httpURLConnectionController/poke controllers.HttpURLConnectionController.poke
GET /httpURLConnectionController/post controllers.HttpURLConnectionController.post
Also some non play Apps, inside playpen
playpen.TryURLConnection
playpen.sttp.TryHttpURLConnectionBackend
playpen.sttp.TryAsyncHttpClientFutureBackend
By default the socks proxy is not used, look inside application.conf, and change socksport and proxyEnabled
(localhost/9050 is for the Tor standalone socks proxy, 9150 if you rely on the Tor browser proxy)
Don't point your browser at localhost:9050 or 9150, or you'll be talking to the Tor Proxy and getting warnings like "this is a SOCKs proxy, not an HTTP proxy"
How to install Tor and create Tor hidden service on Windows