linux curl rest api code example Example: linux curl get request curl https://example.com/index.php?username=luffy&loggedin=true