You can opt to either insert the user and password in the URL or you can provide them separately:
curl -u user:password http://example.org/
Which methods does curl use in the two cases, GET or POST?
Does curl generate the same HTTP request in both cases? If not, which one is less secure?