Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

proxied_request

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxied_request

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Proxied request

Make requests through tor.

Installation

Locate your torrc (Tor Browser\Browser\TorBrowser\Data\Tor) file and add the following line:

SocksPort 127.0.0.1:9050

Install the gem:

gem install proxied_request

Usage

  1. Start tor

  2. Make a request:

require 'proxied_request'

# Make a request through tor
response = ProxiedRequest::HTTP.request('https://api.ipify.org')
puts response.body # =>

# Make a request through tor with a custom user agent
config = ProxiedRequest::Config.new
config.set_header('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0')
config.type = MethodType::POST
config.body = 'foo=bar'
response = ProxiedRequest::HTTP.request('https://api.ipify.org', config)
puts response.body # =>

FAQs

Package last updated on 08 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc