parent
ff28eacd36
commit
c7cea80e0e
@ -0,0 +1,22 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
p := "20A4782A-512C-40ED-8AF9-FCFC7CD29E5B.docx"
|
||||||
|
turl := "http://127.0.0.1:9000/support/preview/preview"
|
||||||
|
resp, err := http.Get(turl+"?p="+p)
|
||||||
|
if err != nil {
|
||||||
|
// handle error
|
||||||
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
|
if err != nil {
|
||||||
|
// handle error
|
||||||
|
}
|
||||||
|
fmt.Println(string(body))
|
||||||
|
}
|
Loading…
Reference in new issue