Re: passing login paramters from php web application to asp web application. help.

From: Date: Thu, 23 Jun 2005 11:48:36 +0000
Subject: Re: passing login paramters from php web application to asp web application. help.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-217470@lists.php.net to get a copy of this message
symbulos wrote:
Richard Lynch wrote:
Can you get the usename/password from the other application?
Yes, we have them.
With it, you can then use http://php.net/curl to simulate the user logging in to the other site.
Thanks.
You simply have to convince the other site that your PHP script actually *IS* the user logging in, which is seldom very tricky, and is always *POSSIBLE* with enough effort.
How can be that done? Do you know of any tutorial, example?
one way is to use the cURL extension. the concept is that your script pretends to be a browser, using cURL to initiate a HTTP connection (aka a request) to the ASP server - your request should send the same as your browser would if you had sumbitted a login attempt to the ASP site directly... come on, you too know how to type stuff into the google search box: http://www.google.nl/search?q=php+cURL&start=0 fourth hit: http://www.phpfreaks.com/quickcode/Curl_Abstraction_Class_v1.0/120.php


« previous php.general (#217470) next »