|
|
Posted by Jochem Maas on 06/29/16 11:19
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
>
Navigation:
[Reply to this message]
|