advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Partners & Affiliates
advertisement
advertisement
Tip of the Day
Expertise: All
Language: Web
March 29, 1999
Embed a User ID and Password in a URL
Frequently, a Web page or an FTP site has protected areas open only to those with a valid login. As you browse to the page, a form appears querying the user id and password. While this feature is nice for a human user to log on interactively, it could be problematic if you want to automate this Web page or FTP site programmatically or create a shortcut without the interactive login. To solve this problem, you can embed the user id and password into the URL. For example:

http://userid:password@www.anywhere.com/
ftp://userid:password@ftp.anywhere.com/

It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?





William Wen
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
advertisement
advertisement