* 2024-06-03
** 13:47 Requêtes hygen

1. POST sur /Module/Mocas_Parcours/ParcoursIntervenant/TableauDeBord
payload
#+begin_src
PageSize: 50
CodesCR: ["PFAURAG"]
Etat: 1
NumeroVenue: MR-2304921
take: 50
skip: 0
page: 1
pageSize: 50
#+end_src
headers
#+begin_src
:authority:
hygen.auragen.fr
:method:
POST
:path:
/Module/Mocas_Parcours/ParcoursIntervenant/TableauDeBord
:scheme:
https
Accept:
application/json, text/javascript, */*; q=0.01
Accept-Encoding:
gzip, deflate, br, zstd
Accept-Language:
fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Content-Length:
116
Content-Type:
application/x-www-form-urlencoded; charset=UTF-8
Cookie:
_ga=GA1.2.1548195567.1715695226; _ga_0WP9H4JY82=GS1.2.1715695226.1.1.1715697725.0.0.0; EasilySession=yohga5npzerwhvirt3nnvqum; EasilyIdentity=9AE73B264BDABFDA0D57162C127AA248EC00953D42B340F3360AA31239589021E939C52FB946B8DFB5045F99C285EECC3ED2E61F9B9983DE391E00D818C4987CEDE8D31C0EEE27F1787C37057F2DB72389DB51A054342E7E6B5BE7C2ABDE1B1BFF4F34C476F88D7A230F3BBD7A93A0837EF956FFD63C91B4A901DD9DB25BC4ACA0430A582FC5169421E2486089166B6639A6F57E1885CD8B8F4CD69D37CE55AAFA7D1EE99A1C28B21A3E94FC0E466C87FC6C054507E5ED30E3584BADE5D77250E8B6516CFC34812FD05FFC1E71032DEC; mocasSession=d41be185-6a88-423c-997e-bc302f0e1569; easily.AntiForgeryToken=YwQVoL68U4x4l4aw3PCZu6Avzyuea8VUREOXfeMRBIWcWFGLfRlppAZOKzcj-i_o0lwXr3gloLI48B5JElS6y_u8qSZJ5QB1Woip4R_JxTq_9amnhbogCS5ZJzixRksmJlOzjb8cOsJKwEFbdshV0w2
Origin:
https://hygen.auragen.fr
Priority:
u=1, i
Referer:
https://hygen.auragen.fr/BiologisteGeneticienAURAGEN?X-Correlation-ID=4517ec0f-76b6-48fe-81ca-bcdb91ac38fb
Sec-Ch-Ua:
"Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Linux"
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-origin
User-Agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
X-Easily-Xrsf-Token:
amrUXWNngi8OG9J0jm_PeIwKWiFs7xwRr2mmKoLV2FO3ST1XF9dtykyI47s1dJ1QCKo8V5c1DzndjY9qiX4RTl4kxrlYaBjmeU0UJ-sFPV59UFUTEIh-Q3BnFoLZissrIHQd8uRlw95OX5FNr2h-DA2
X-Requested-With:
XMLHttpRequest
#+end_src
response
#+begin_src
{
    "Success": true,
    "Object": {
        "TotalNbItems": 1,
        "Items": [
            {
                "Patient": {
                    "IdMyHOP": null,
                    "Ipp": "00023333",
                    "Nom": "XXX",
                    "EstAnonymise": false,
                    "Sexe": 1,
                    "ShortIdentityWithDateDenaissance": "XXX",
                    "LongIdentityCompleteWithDateDenaissance": "XXX",
                    "LongIdentityComplete": "XXX",
                    "IdentityWithDateDenaissance": ""
                },
                "Prescription": {
                    "NumeroVenue": "MR-2304921",
                    "Commentaire": "$indication"
                },
                "IdEnsembleVersion": 1,
                "Code_UF": "ToulousMR",
                "LibelleEtCodeUF": "ToulousMR - CHU Toulouse - domaine maladie rare",
                "IdPrescription": 53304,
                "DatePrescription": "2023-11-30T11:02:03.9824551",
                "IdEtat": 1,
                "IdPatient": 17317,
                "pres_NbEtapesRDVAPrendre": 0,
                "pres_NbEtapesRealisee": 8,
                "pres_NbEtapesAFaire": 0,
                "pres_NbEtapesTotal": 9,
                "DateEvtDecl": "2023-11-30T11:02:02.6018158",
                "NomResponsable": "YYY",
                "MostToDo_Libelle": null,
                "MostToDo_DateDebut": null,
                "MostToDo_DateFin": null,
                "MostToDo_DateRDV": null,
                "MostToDo_IdEtapePrescrite": null,
                "Next_Libelle": null,
                "Next_DateDebut": null,
                "Next_DateFin": null,
                "Next_DateRDV": null,
                "Next_IdEtapePrescrite": null,
                "Titre": "AURAGEN filière maladie rare",
                "NumVersion": 18,
                "DateModification": "2023-12-05T00:38:02.9733457",
                "HasLiaisons": false,
                "CanEditPrescriptions": false,
                "HasEtapeAvecCodeCrCommeActeur": true,
                "IdResponsable": 304,
                "IdPrescripteur": 304,
                "TitreSuiviPrescription": "NOM - FILERE"
            }
        ]
    }
}
#+end_src
2. Jeton 1 = ?
3. Jeton2 = post sur
https://hygen.auragen.fr/Container/GenerateLegacyAppPath
payland utili
2.
   lien de téléchargement obtenu par GET sur
   https://hygennlb.auragen.fr/dominho/Fiche/CreateOrOpen?jeton-dominho=b7f536f5-ff91-46ce-a4ac-29047e054b37&GUID=c8d34abe-5d5a-4085-86de-0221efbec8e0&X-Correlation-ID=f35cb270-4b3c-4baa-ab77-9b0000da3e3
   dans le HTML on a le lien vers le téléchargement mais sans le fileID
dans DeleteMetadoneChildFile
1. Téléchargement avec /Dominho/Fiche/DownloadFile
   lien de téléchargement obtenu par GET sur

   avec payload
   ukey: 8ZnJYk6CR3I/y/RT/zHw7oLOBDx8uvv0Gv4Vz5tGy6efqaK9NdA=
   file_id: b7e08444e677430cb62c4468c6063cb6
headers
   #+begin_src
   :authority:
hygennlb.auragen.fr
:method:
GET
:path:
/Dominho/Fiche/DownloadFile?ukey=8ZnJYk6CR3I%2Fy%2FRT%2FzHw7oLOBDx8uvv0Gv4Vz5tGy6efqaK9NdA%3D&file_id=b7e08444e677430cb62c4468c6063cb6
:scheme:
https
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding:
gzip, deflate, br, zstd
Accept-Language:
fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Cookie:
_ga=GA1.2.1548195567.1715695226; _ga_0WP9H4JY82=GS1.2.1715695226.1.1.1715697725.0.0.0; ASP.NET_SessionId=43zwtbzcb0khl3czxwshdo2l; openSessionMocas=openSessionMocas
Priority:
u=0, i
Referer:
https://hygennlb.auragen.fr/dominho/Fiche/CreateOrOpen?jeton-dominho=04cb077a-ea5f-4381-94da-65ffb1ef6dbe&GUID=84b3eeed-f4c7-4e19-9734-ef1568ead653&X-Correlation-ID=a8d1e9b1-71f5-4edc-b6de-668641429ea5
Sec-Ch-Ua:
"Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Linux"
Sec-Fetch-Dest:
iframe
Sec-Fetch-Mode:
navigate
Sec-Fetch-Site:
same-origin
Sec-Fetch-User:
?1
Upgrade-Insecure-Requests:
1
User-Agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
   #+end_src
** 15:20 Essai selenium/seleniumbase/hack
Impossible de passer le proxy, "erreur 502" avec toutes les possibilités (2h de tests)
Seul moyen = eduroam. Mais il faudrait se connecter à un onglet ouver