![What is correct way to send GET query with access_token to the Matrix Synapse server with CURL ?](https://rvso.com/image/726386/What%20is%20correct%20way%20to%20send%20GET%20query%20with%20access_token%20to%20the%20Matrix%20Synapse%20server%20with%20CURL%20%3F.png)
What is correct way to send GET query with access_token to the Matrix Synapse server?
curl -k -G -X 'GET' -H 'X-Auth-Token: MDAyMGxvY2F0aW9uIG1hdHJpeC5qZG1ncm91cC5wb' -H 'Content-type: application/json' http://local_ip:8008/_matrix/client/r0/admin/whois/@root:domain.name.com
Answering
{ "errcode": "M_MISSING_TOKEN", "error": "Missing access token." }
Respuesta1
I found correct way
curl http://local_ip_address:8008/_matrix/client/r0/admin/whois/@root:matrix.domain.com?access_token=sfldsjkfldsjflkjdskfjkdjksdmcmdsflkdsfkdsjlkdsjfjlds
It works for me.