Bonjour,
Je recherche une possibilité de creer un liens téléchargement vers un obj (donnee type .obj .3ds .avi).
1 2 3 4 5
| func viewHandler(w http.ResponseWriter, r *http.Request) {
title := r.URL.Path[len("/view/"):]
p, _ := loadPage(title)
fmt.Fprintf(w, "<center><h1>%s</h1></center><div>%s</div>", p.Title, p.Body)
} |
Tous fonctionne via le fichier texte.txt
<a href="http://localhost:8080/view/Fod.avi">video1</a>
Mais la réponse est la suivante pour obtenir le fichier
The connection was reset
The connection to the server was reset while the page was loading.
Merci
Partager