I'm trying to make a php cURL script that should act like a bridge/proxy (like "man in the middle" but nothing hacking ), make a POST to a url (example.com) and redirect the client to that link after it gets the response . I'm not sure if it's possible so please advise. Basically the client will pass 2 values through our site (e.g examplecurl.com) and after the values are passed the client must be redirected to that specific site (example.com) logged-in like it have passed the values directly through example.com. I need to mention that "example.com" site doesn't use cookies and I can successfully pass the values through the cURL script, i set follow_location option but the only problem is the redirection.
Thank you in advance for your help ! any solution would be appreciated !