I'm trying to use CURL on the following address (example)
https://examplesite.com/ExampleService/ExampleService.asmx?wsdl
When I copy the url to a browser i get the browser login popup and using the username and password i get to see the webservice XML file
But when i try to call curl to the same address using
curl -u username:password https://examplesite.com/ExampleService/ExampleService.asmx?wsdl
I get a 401 reply error. What might be the problem ?