Haccess

cs_tolt Messages postés 270 Date d'inscription mardi 17 décembre 2002 Statut Membre Dernière intervention 4 avril 2019 - 5 févr. 2012 à 13:00
Bonjour,

Avez-vous une idée ?
J'essai de télécharger un fichier sur mon pc à partir d'un site protégé par un .haccess et ça ne marche pas.

Voilà mon code :
Code est = monutilisateur:monmotdepasse

WinLoad.SendData "GET " & cPath2 & " HTTP/1.1" & vbCrLf & _
"User - Agent: VB OpenUrl" & vbCrLf & _
"Host: " & WinLoad.RemoteHost & vbCrLf & _
"Authorization: Basic " & Codes & vbCrLf & _
"cache -Control: no -cache" & vbCrLf & vbCrLf

Réponse du serveur.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head>
Authorization Required

This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.


</html>

Franchement je vois pas.

Merci d'avance.

tolt