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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -