ftp - Connect C++ application to a website server and retrieve files based on a password -


let's have:

1) c++ application

2) website server

first of all, give application users , want these users have access files of website server (this of course happen internally, example user press button , application load images server).

however, need each user have access different files. meaning, want able give password user called user_a , specific user using password gave him, press button, enter password , load images folder called dir_a, same way user called user_b password have access images in folder called dir_b, etc. how website members work when sign in website.

i know question bit ambiguous but:

1) possible

2) if yes, start from? need do?

  • setup webserver return different files based on http request
  • use password form url

  • the application use request following urls:

 https://example.com/password-a https://example.com/password-b 
  • the server return appropriate files.
  • use libcurl (easy curl) http implementation
  • for more security, send hashes instead of password, use https, require authentication, etc. etc.

Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -