You are here: Re: Is this possible? Login to remote site using cURL, then pass credentials to browser. « All PHP « IT news, forums, messages
Re: Is this possible? Login to remote site using cURL, then pass credentials to browser.

Posted by JDS on 05/21/07 21:43

On Tue, 15 May 2007 10:16:35 -0700, shimmyshack wrote:

>
> in the traditional model of client<->server1.com<->server2.com the
> credentials (if stored as cookies) will only be valid for domain
> server1.com, so you cannot hand off the credentials to the client



Okay, so, I think I have my original answer: "NO"

That's okay. I found an acceptable workaround. Note: This workaround may
not be acceptable to everyone as it uses JavaScript and depends on client
side behavior!

Solution:

1) Create PHP script that gathers creds and maps them to the proper
username/password.

2) Embed an HTML form that mimics the POST form I need to circumvent

3) Use the onload() and submit() events to submit creds via POST method

This works! Yay!
--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация