Skip to content

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

Notifications You must be signed in to change notification settings

fancellu/play-sttp-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages