Solved

HTTP authentication

Posted on 2001-06-18
9
213 Views
Last Modified: 2006-11-17
Hi, I am trying to collect login name and password from the client and pipe them to authenticate via HTTP authentication(.htaccess). But instead of having a small login window pop up, I would like to use text boxes. I tried the following code but the window still pops up and asks for login/password. Is there any other way to achieve my goal?

<?
  header("location:$login:$pswd@myhost.com/members/index.htm");
?>

Here, $login and $paswd are passed by HTTP POST method and as you might have guessed, /members directory is protected by .htpasswd. Any help/suggestion would be appreciated.
0
Comment
Question by:as66422
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 15

Expert Comment

by:a.marsh
Comment Utility
I believe it's not possible - that's just the way HTTP Authentication works - but I'd love to be proven wrong. :o)

Ant
0
 
LVL 8

Expert Comment

by:us111
Comment Utility
header("location:$login:$pswd@myhost.com/members/index.htm");  won't work

hmm not possible or ,maybe with the fsockopen function, it should work
0
 
LVL 8

Accepted Solution

by:
us111 earned 100 total points
Comment Utility
0
 
LVL 8

Expert Comment

by:us111
Comment Utility
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Expert Comment

by:higijj
Comment Utility
wouhou!

The best way to learn stuff like that.. is to intercep all packets send from/to your couputer.. with a sniffer ;-)

that way, you'll see how it works.. and you can simulate the same thing with socket programming!

0
 
LVL 8

Expert Comment

by:us111
Comment Utility
heavy and huge solution, higijj :)))
the sample at
http://www.phpbuilder.com/mail/php-general/2000091/1829.php  works very well without sniffing :))
0
 
LVL 2

Expert Comment

by:higijj
Comment Utility
I know!

but I meant for any kind of situation like this..
;-)

0
 

Author Comment

by:as66422
Comment Utility
Thanks a million us111 you just made my day!!!
0
 

Author Comment

by:as66422
Comment Utility
Thanks a million us111 you just made my day!!!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now