Skip to content

A reverse http utility tool to easily send requests to other servers.

License

Notifications You must be signed in to change notification settings

Alvarios/poster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poster

A reverse http utility tool to easily send requests to other servers.

go get github.com/Alvarios/poster

Post

Send a post request from go, in application/json format.

package my_package

import "github.com/Alvarios/poster"

func main() {
    payload := map[string]interface{}{
        "message": "hello from go",
    }

    // payload has to be JSON friendly
    res, err := poster.Post("https://www.domain.com/url", payload)
}

Get

Get request to a http server.

package my_package

import "github.com/Alvarios/poster"

func main() {
    res, err := poster.Get("https://www.domain.com/url")
}

Copyright

License MIT, licensed by Kushuh with Alvarios.

About

A reverse http utility tool to easily send requests to other servers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages