Skip to content

Package for doing anonymous requests using Golang

Notifications You must be signed in to change notification settings

adrpino/go-requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-requests

Simple library to do HTTP requests routed through public proxies and Tor.

Installation

go get github.com/adrpino/go-requests

Example usage

If you have Tor running:

package main

import (
	"fmt"
	req "github.com/adrpino/go-requests"
	"io/ioutil"
)

func main() {
	res, _ := req.OnionRequest("https://icanhazip.com")
	defer res.Body.Close()
	b, err := ioutil.ReadAll(res.Body)
	// Panicking is for cowards
	if err != nil {
		panic(err)
	}
	fmt.Println(string(b))

}

About

Package for doing anonymous requests using Golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages