
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Ever wondered what HTTP requests the Ruby gem you are using to connect to a third party API is making? Use HTTP Spy to see what is going on behind the scenes.
sudo gem install martinbtt-net-http-spy
require 'rubygems'
require 'twitter'
gem 'net-http-spy'
require 'net-http-spy'
Twitter::Search.new('httparty').each { |r| r }
# Outputs...
-- : CONNECT: ["search.twitter.com", 80]
-- : GET /search.json?q=httparty
-- : BODY: Net::HTTPOK
See the examples folder for more.
Show the call trace to the originating line of code in the third party gem
Net::HTTP.http_logger_options = {:trace => true}
Output the body of the request
Net::HTTP.http_logger_options = {:body => true}
Show the full raw HTTP output
Net::HTTP.http_logger_options = {:verbose => true}
Change the logger. By default HTTP spy logs to STDOUT
Net::HTTP.http_logger = Logger.new('twitter.log')
Use it to grab sample data for FakeWeb = testing goodness.
This is a pretty early release. I'm sure there is plenty that can be done to improve compatibility as several libraries call Net::HTTP in a slightly different way. Feel free to fork and send in pull requests/patches.
Martin Sadler (martin -- at -- beyondthetype.com)
FAQs
Unknown package
We found that net-http-spy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.