mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-26 08:38:58 -04:00
24 lines
306 B
Go
Executable File
24 lines
306 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"io/ioutil"
|
|
)
|
|
|
|
func main() {
|
|
|
|
url := "http://mockbin.com/har"
|
|
|
|
req, _ := http.NewRequest("PROPFIND", url, nil)
|
|
|
|
res, _ := http.DefaultClient.Do(req)
|
|
|
|
defer res.Body.Close()
|
|
body, _ := ioutil.ReadAll(res.Body)
|
|
|
|
fmt.Println(res)
|
|
fmt.Println(string(body))
|
|
|
|
}
|