We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef05d4 commit baa569fCopy full SHA for baa569f
main.go
@@ -2,10 +2,11 @@ package main
2
3
import (
4
"fmt"
5
+ "os"
6
+ "os/exec"
7
)
8
9
func main() {
-
10
var url string
11
var method string
12
var option string
@@ -42,6 +43,10 @@ func main() {
42
43
fmt.Scan(&option)
44
if ynToBool(option) {
45
fmt.Println("Sending request")
46
+ cmd := exec.Command("curl", "-X", method, url)
47
+ cmd.Stdin = os.Stdin
48
+ cmd.Stdout = os.Stdout
49
+ cmd.Run()
50
} else {
51
fmt.Println("Do you want to save request to file? [y/n]")
52
0 commit comments