Bonjour gynoide, merci de te pencher sur mon problème :
A terme, je voudrais faire un programme Java qui va sur le site de ma banque pour demander un n° de carte virtuelle. Pour commencer par du plus simple (c'est un objectif que je me suis fixé pour progresser, je sais qu'il existe des solutions toutes faites), je cherche à obtenir mon solde bancaire.
Beaucoup d'approximations jalonnent mon code et je tâtonne depuis un moment.
Ce que je crois comprendre :
- j'ouvre une connexion httpsurlconnection (sécurisée) à la page d'identification https://www.creditmutuel.fr/cmne/fr [...] efault.cgi
- je récupère le cookie de session dans l'en-tête
- j'envoie mon mot de passe et mon identifiant en POST, en spécifiant un navigateur autorisé et d'autres choses (...?)
- je ferme la connexion pour la réouvrir (que la CGI produise ma page SITFIN, situation financière)
Mais c'est la page d'identification que je retrouve.