You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
386 B
23 lines
386 B
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))
|
|
}
|