| re: Get File Contents/Source using POST first
Yes, I will try to clarify. The action method to the form is not on my domain, it is on another domain. I would like to pass the login information via action method and once they are logged into that domain--I need to redirect to another page on their domain to get a different form element's value returned to me. The only way to get a cross-domain's element back to me is through a server side proxy which returns the element back to me nicely except I need it to login because if I do not, then the other page on that domain will not give the correct value since the user did not login on that through that same proxy.
I was thinking I could use file_get_contents($_POST['url']) to get the value I need via iframe except if I do a form to login to that domain before getting contents, it will not give me the correct value because the same method needs to login first before getting contents.
I have tried AJAX with some CGI/Perl and maybe that is the most reasonable approach, however, I was thinking there was some clever way to implement this in PHP. Someone once suggested cURL but I did a little research on this and wasn't really too sure how to get it done.
|