+ if *dl != -1 {
+ resp, err := http.Get(f.URLs[*dl].URL)
+ if err != nil {
+ log.Println("Error:", f.Name, err)
+ bad = true
+ continue
+ }
+ log.Println("HTTP response:")
+ for k := range resp.Header {
+ log.Println("\t"+k+":", resp.Header.Get(k))
+ }
+ if resp.StatusCode != http.StatusOK {
+ log.Println("Bad status code:", f.Name, resp.Status)
+ bad = true
+ continue
+ }
+ src = resp.Body
+ }