简体   繁体   中英

php cURL form post login then display site in embed tags

I want to be able to log into a site (form POST) from my site and then display the logged in site on my site.

Will logging into the site with cURL (form POST) and on success display the site as if I was logged in on my site using the embed tag work? Is this the right way to do what I want?

Examples would be helpful.

That can work if you add <base> tag pointing to the website you are displaying to load all css and js files with relative paths.

Also, if you store cookies in file or database, you might not even need to login every time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM