Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!