i want to check login information for remote website. i can do it with curl, but curl uses server’s ip (i dont want my script to use server’s ip, i want script to use client’s ip).
for example: client will use my form (username and password) and my php script will check out his account details are correct or not. script will control that his account credentials are true or not.
i can not use curl (server ip),file get contents (server ip), jquery+json+ajax(cross domain problem).
any advice?
It is impossible for you to not use the server’s IP address if the server is making the request. You are correct that the ajax solution won’t work for xss reasons.
You could open the remote page in a hidden iframe, and control that iframe with jquery.