W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

Sending Username and Password for HTTP PUT

From: Macomber, Jeff <jmacomber@ncslink.com>
Date: Mon, 29 Nov 1999 11:32:36 -0700
Message-ID: <E6C685689B17D3119FBD00104B76BD9237830F@mesa-mx1.ncslink.com>
To: www-lib@w3.org
Hello,

I am trying to write some code that takes in the name of a file to retrieve
from a web server and then connects and retrieves it to the hard drive
(relatively simple).  I am trying to figure out how wwwlib handles username
and passwords since I will need to log into the server to get at the file.
Does anyone have some experience with doing this that wouldn't mind
enlightening me?  

Thanks for your Time,

Jeff

> -----Original Message-----
> From:	Henrik Frystyk Nielsen [SMTP:frystyk@microsoft.com]
> Sent:	Thursday, November 04, 1999 1:46 PM
> To:	Richard Krenek; www-lib@w3.org
> Subject:	Re: HTPutDocumentAnchor on Windows
> 
> I bet it's the local file name that confused libwww - try and use
> 
>     HTLocalToWWW(...)
> 
> defined in
> 
>     http://www.w3.org/Library/src/HTWWWStr.html
> 
> to convert the local file name into a URI before using it in HTParse(...).
> 
> Henrik Frystyk Nielsen,
> mailto:frystyk@microsoft.com
> 
> ----- Original Message -----
> From: "Richard Krenek" <rkrenek@ihs.com>
> To: <www-lib@w3.org>
> Sent: Thursday 04 November, 1999 10:34
> Subject: HTPutDocumentAnchor on Windows
> 
> 
> > Hello All,
> >     I'm trying to run the below command which keeps returning 'NO'. It
> > works fine on a Unix platform
> > but returns 'NO' when on windows.
> >
> > char * local_filename_to_send = "c:\\temp\\somefile.tif";
> > char * full_src_str = HTParse(local_filename_to_send, cwd, PARSE_ALL);
> > HTAnchor * src = src = HTAnchor_findAddress(full_src_str);
> > HTAnchor_setLength(HTAnchor_parent(src), len);
> > BOOL st = HTPutDocumentAnchor(HTAnchor_parent(src), dst, request);
> >
> > The dst is a valid URI and the file to send is valid. We tried the
> > slashes in the file name as \\ and /, neither worked. Has anyone else
> > had simular problems or know what I may be doing wrong or need to
> > change? Anything would be helpful.
> >
> > Thanks,
> > Richard Krenek
> >
Received on Monday, 29 November 1999 14:05:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT