Hello all,

I am trying get one server to authenticate to another server possibly with a 
browser window in the middle.

My browser throws a syntax error at this url 
http://username:[EMAIL PROTECTED]:2082 but will allow the same with ftp - 
ftp://username:[EMAIL PROTECTED]

I want to have a page that has login buttons for remote sites (hosting 
client sites and the like).

I understand that with "AuthType Basic" the server sends a request for login 
information (403 or something like that). The browser subsequently sends the 
user/pass on every other request for a page/resource on that site.

Is there a way to do this in advance?

ie can I do something like this in html ? ..
<form action="http://theirdomain.com:2082"; method="post">
<input type="hidden" name="user" value="username">
<input type="hidden" name="pass" value="password">
<input type="submit" value="Your cPanel">

If not then can I proxy it on the server? ie can I place the username and 
password into the headers to the remote site and pass a cookie back to the 
browser so they can continue the session with the remote site?

PS: cookies will pass as I can use a different url
ie the remote site may be theirdomain.com and their cpanel may be their 
domain.com:2082 but as they are a hosting client I can use the following url 
for their cpanel - mydomain.com/~theirusername:2082 so that the cookie is 
valid.

Thanks. 


Reply via email to