简体   繁体   中英

Reading xml data from remote server securely

I need to get some xml data from my customer's server. I created two php files for doing this. When I call a php file in my server (reader.php), it calls the file in remote server (client.php) and gets data via curl. Of course, everyone can access this client.php file, so I created some validations for security. The reader.php calls client.php with some special parameters (send with POST) and client.php checks these parameters, if everyting is fine, prints the xml data for reading.

I wonder this approach is enough for security? This XML data is really important and I don't want to do something wrong.

First of all, you MUST use SSL for secure transmission of information.

Second of all, what are these "special parameters" you refer to? If you are talking about a username/hashed password, then in conjunction with SSL encryption you are doing what 95% of websites do for security. Of course, you can always get more extreme.

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