An open API service indexing awesome lists of open source software.

https://github.com/fancellu/play-sttp-examples

Some examples of using sttp "the Scala HTTP client you always wanted!" plus usage of Tor socks proxy
https://github.com/fancellu/play-sttp-examples

play-framework socks sttp tor

Last synced: about 2 months ago
JSON representation

Some examples of using sttp "the Scala HTTP client you always wanted!" plus usage of Tor socks proxy

Awesome Lists containing this project

README

          

# play-sttp-examples

Some examples using sttp "the Scala HTTP client you always wanted!"

https://sttp.readthedocs.io/

We also show the use of a Tor socks proxy

## To run

`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

## Endpoints

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

## Tor

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

https://miloserdov.org/?p=1839

https://www.techwalla.com/articles/how-to-use-tor-proxy