Michael Heiming wrote:
> In comp.os.linux.networking Russ <(E-Mail Removed)>:
> [..]
>
>
>>I need to upload a large (1GB+) archive via a script with automatic
>>login to a sharepoint server over the internet. The address of the
>>server is in the format of: https://sp.mycompany.com/backups/TIF_lab/.
>
>
> Try:
> man curl
>
> Curl supports https and IIRC uploading.
>
> [..]
>
According to the curl man page, if I supply no user/password, then it
should ask me...
-u/--user <user

assword>
Specify user and password to use when fetching. See
README.curl for detailed examples of how to use
this. If no password is specified, curl will ask
for it interactively.
However, it doesn't ask and even supplying the user/password results in:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>You are not authorized to view this page</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
<h1>You are not authorized to view this page</h1>
You do not have permission to view this directory or page using the
credentialsthat you supplied because your Web browser is sending a
WWW-Authenticate headerfield that the Web server is not configured to
accept.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe you should be able
to view this directory or page.</li>
<li>Click the <a href="javascript
:location.reload()">Refresh</a> button
to try again with different credentials.</li>
</ul>
<h2>HTTP Error 401.2 - Unauthorized: Access is denied due to server
configuration.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a
href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product
Support Services</a> and perform a title search for the words
<b>HTTP</b> and<b>401</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
and search for topics titled <b>About Security</b>,
<b>Authentication</b>, and<b>About Custom Error Messages</b>.</li>
</ul>
</TD></TR></TABLE></BODY></HTML>