Hi, i'm sort of writing a web server program, but its not going to be a full web server its just going to serve some files. Here is my problem I'm trying to do authentication BUT I dont know what to do with the data i get back from the client...
Dim authdata As String
authdata = "HTTP/1.1 401 Authorization Required" & vbCrLf & _
"Date: " & Format(Date, "DDD") & ", " & Format(Date, "DD") & " " & Format(Date, "MMM") & " " & Format(Date, "YYYY") & " " & Format(Time, "H:MM:SS GMT") & vbCrLf & _
"Server: CarbosoftFileServ/1.0.0 (x86)" & vbCrLf & _
"WWW-Authenticate: Basic realm = ""Please enter your Username and Password.""" & vbCrLf & _
"Connection: Close" & vbCrLf & _
"Content-Type: text/html; charset=iso-8859-1" & vbCrLf & vbCrLf & _
"Please enter your Username and Password!" & vbCrLf & vbCrLf
Thats what I'm sending to the client to ask for the password...below is what I get back, where it says "Basic" and it has a bunch of charecters...what is that? is that base64 encoding or what??? Cuz I'm not sure what to do with it, once i can decode it ill have it from there...thanks
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
Authorization: Basic YnJpYW46MTIzNA==
see that last line, that really looks like Base64...but what is it?