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
- Host: GitHub
- URL: https://github.com/fancellu/play-sttp-examples
- Owner: fancellu
- Created: 2019-11-26T15:04:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T18:38:49.000Z (over 6 years ago)
- Last Synced: 2025-02-25T10:32:55.262Z (over 1 year ago)
- Topics: play-framework, socks, sttp, tor
- Language: Scala
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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