Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I??

 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a password protected folder in my webserver. Can I pass the password while calling a file from that folder through http?
Operating system. windows2000
Thanks
Nazer
 
SJ Adnams
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh yes,
cant remember exactly, but you need base64 encode the username and password and stick a colon ':' between the two. Then set a header field with this value.
Can't remember the header name? you know google don't you??
 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks Lee.
Can some one be more specific with this?
Nazer
 
SJ Adnams
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GET /MyPages/MySecret/file.txt HTTP/1.0\r\n
Authenticate: base64-encoded-string\r\n
where base64-encoded-string = "user:pass" encoded as base64 (no quotes)
[ September 13, 2002: Message edited by: Simon Lee ]
 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lee.
Nazer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic