Created
November 12, 2019 13:45
-
-
Save zafer06/213440fdb73a16331e8a7bc00b8bdd30 to your computer and use it in GitHub Desktop.
Go ile post istegi yapmak...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "strings" | |
| "net/http" | |
| ) | |
| func main() { | |
| body := strings.NewReader("{ \"message\": \"ok\" }") | |
| http.Post("http://requestbin.fullcontact.com/1hp80td1", "application/json", body) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment