My guess is that the authentication method this page of yours uses is not one of the HTTP authentication methods that curl supports out-of-the-box.
The HTTP authentication is basic -- some might say trivial -- and it is fundamentally insecure in its most basic form (literally, 'basic' mode HTTP authentication sends the users' password over the wire in plain text, as one of the request headers). I only ever see it used in conjunction with HTTPS, and even that's pretty rare these days.
HTTP authentication is generally eschewed in favor of either an HTTP PUT or POST request over HTTPS, usually fortified with some kind of cross-site request forgery (CSRF) prevention measure, or an OAUTH2 strategy (which typically defers the issue to the authentication broker's implementation).
あなたの問題は、カールがこれについて何も知らないことです。Python でプログラミングする場合は、このrequests
パッケージが役立つ (そして起動するための設計が curl よりも新しい) ことに気付くかもしれません。HTTP API を適切に呼び出している場合、Solr はどちらの方法も気にしません。