Display redirected URL on user's browser using CURL redirect

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
Juz
Forum Newbie
Posts: 1
Joined: Tue Apr 06, 2010 8:34 pm

Display redirected URL on user's browser using CURL redirect

Post by Juz »

Greetings,

Am encountering images not displaying and javascripts not working properly after doing a CURL redirection with POST variables, is there any ways to 'completely' redirect the user to the website?

Or is there any ways to secure the pre-defined form values?

The reason am doing this is because the form need to send sensitive data (Example, login name and password) over to a HTTPS URL and the user's browser needs to be redirected there as well. After 2 days of google-ing and try-and-error, am still stuck with this issue.

Anyone has any better suggestions?

Any help will be appreciated.
katierosy
Forum Commoner
Posts: 27
Joined: Wed Apr 07, 2010 8:39 am

Re: Display redirected URL on user's browser using CURL redi

Post by katierosy »

You have to compromise with javascript and design of the site when you post data using curl.As here main purpose is post data to the server, not the display/look of the site
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Display redirected URL on user's browser using CURL redi

Post by AbraCadaver »

Not sure if I am understanding you correctly, but if you are trying to post data and redirect the user you must use javascript for the post. Check this post:

viewtopic.php?f=1&t=113435&p=595834&hil ... pt#p595847
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply