简体   繁体   中英

PHP: Log in to a .aspx site and retrieve response

How can I log in to a website's .aspx page and retrieve the response? I would like to log in to www.laterooms.com/hoteliers. I've found many examples for logging in to standard POST forms but not for this kind of form.

Is it also possible to maintain a cookie container in PHP?

You might wanna use cURL for that, it's a library that allows you to communicate over many different protocols (http, https, ftp, telnet, etc.) You can do a login by using the library and keep a session in PHP. Here's an example that might get you on track: Login to remote site with PHP cURL

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