close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
- Timestamp:
-
Jun 10, 2022, 7:39:03 AM (3 years ago)
- Author:
-
irina
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
36 | 36 | |
37 | 37 | Observamos que en el apartado “Curl” el comando que envía incluye el token de autenticación. |
| 38 | |
| 39 | |
| 40 | Podemos usar las consultas que muestra directamente en curl añadiendo |
| 41 | -k para que no compruebe el certificado digital del servidor |
| 42 | -A "python-requests/" para emular que quien consulta la url es un agente de python |
| 43 | |
| 44 | Por ejemplo: |
| 45 | {{{ |
| 46 | curl -k -X POST -A "python-requests/" --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: XXXXXXXXX' -d '{ \ |
| 47 | "labid": 0, \ |
| 48 | "maxtime": 24 \ |
| 49 | }' 'https://$SERVER/opengnsys/rest/ous/1/images/11/reserve' |
| 50 | }}} |
| 51 | |