Solved

Sending uid & pw info to .htaccess via url?

Posted on 2003-11-24
3
233 Views
Last Modified: 2008-07-03
Hi,

Is there some way to send uid and pw info to an .htaccess script?  I need to write some PHP that logs into my routers firmware, reads the log, and reports back.

It seems there must be a way to do it, I just can't figure out how.

Thanks,

Raydot
0
Comment
Question by:Raydot
3 Comments
 
LVL 6

Accepted Solution

by:
andreif earned 125 total points
ID: 9814699
Do you want to open .htaccess protected page with script?
If yes, try to open this URL

http://username:password@yourURL.com/
0
 
LVL 19

Expert Comment

by:Michael701
ID: 9815550
best setup and use an httpS:// connection. won't want to be transmitting user / password across non-secure protocals
0
 
LVL 3

Author Comment

by:Raydot
ID: 9815956
Good point, Michael, but it's all local.

Thanks andreif, that's just what I was looking for.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

830 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