Pass query parameters directly in the URL.
Section: Request Shaping
Send query parameters in URL
bash
bash
curl 'https://example.com/search?q=curl&sort=new'Explanation
Quote URLs containing `&` to prevent shell interpretation.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Request Shaping
Append query parameters with --get
Build a GET query string from data parameters.
Use a custom HTTP method
Send a method such as PUT, PATCH, DELETE, or PURGE.