Hi,
I've written some PHP code that proxies a remote server using CURL. All cgi's on the remote sever use basic authentication. This is not problem as I know the user/pass combination and can pass them in the CURL request.
There are some cgi's however that I don't want to proxy that way. One in particular is for file uploads. yet, I do want the remote server to be completely protected and invisible to the enduser.
So I come to mod_rewrite. It can load rewrite rules from textfiles, so I was thinking to keep a rewrite textfile for each user on my machine and have mod_rewrite use that for the rules.
But - as I'm completely new to mod_rewrite and don't have a clue:
How do I write a rule that proxy's from my local url to the remote url using a specific user/pass in that request so that the actual enduser is not asked to authenticate?
TIA