22 lines
336 B
Go
22 lines
336 B
Go
package main
|
|
|
|
import (
|
|
"git.3crabs.ru/VLADIMIR/net/http"
|
|
)
|
|
|
|
func main() {
|
|
client := http.NewClient()
|
|
_, err := client.Do(
|
|
"GET",
|
|
"http://test.ru",
|
|
[]http.Header{
|
|
{Name: "Host", Value: "3crabs.ru"},
|
|
{Name: "User-Agent", Value: "3crabs/0.0.1"},
|
|
{Name: "Accept", Value: "*/*"},
|
|
},
|
|
)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|