Closed fcddk closed 4 years ago
This looks related to #64 .. if the server at http://10.110.18.101
is returning Content-Disposition
without a filename
directive grab would (currently) fail to determine the name and return an error.. this should be fixed by #67 ..
You can check it by
curl -I http://10.110.18.101:30039/group1/agent/ecs-monitor-03-linux64-amd64.tar.gz
no filename could be determined 2019/09/29 16:44:31 E! DownloadFile client connect error: no filename could be determined
code:
func main() { err := downloadFile("http://10.110.18.101:30039/group1/agent/ecs-monitor-03-linux64-amd64.tar.gz") if err != nil { fmt.Println(err) } }
func downloadFile(httpUrl string) error { //client := grab.NewClient()
}