webrequest login apache with folder username/password

srdva59

Active member
Joined
Feb 21, 2009
Messages
28
Programming Experience
Beginner
hi,
i have the following code working fine:


Dim request As WebRequest = WebRequest.Create("mysite.com")

Dim byteArray As Byte() = ASCII.GetBytes(query)

query ="data=1"


' Dim byteArray As Byte() = Encoding.UTF8.GetBytes(query)

request.ContentType = "application/x-www-form-urlencoded"

request.ContentLength = byteArray.Length


but now i have protected the link with a user login that apache does
with the folder protect user and password
i have done this in my code for login:

request.Credentials = New NetworkCredential("user", "pass")
but i can´t still acess the site i think it´s because the login
the credencials that vb.net have is for login the folder protected password or is
for something else?
thanks a lot for your help
:)
 
Back
Top