Get list of current rooms using curl

i have got through this thread Get the list of rooms and similar threads. Maybe I missed a thread, but I can’t seem to figure out how to send a curl request (or really any sort of request) to prosody to return the list of current rooms. Any guidance would be appreciated