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

Re: ftp thru proxy patch

From: Herbert Xu <herbert@greathan.apana.org.au>
Date: Wed, 27 Nov 1996 14:51:17 +1100 (EST)
Message-Id: <199611270351.OAA11370@greathan.apana.org.au>
To: frystyk@w3.org (Henrik Frystyk Nielsen)
Cc: www-lib@w3.org
Henrik Frystyk Nielsen wrote:
> 
> At 12:17 PM 11/27/96 +1100, Herbert Xu wrote:
> >	I reported a problem about FTPing thru proxies
> >with ComLine, LineMode, etc. several weeks ago and received
> >no replies.  I was able to get it work by applying the
> >appended patch.
> 
> Sorry about that!

No problems.

I do have another question on the numbering of libwww versions.
When does the major number go up? That is, who decides when to
call a release 6.0 for instance.

I want to know this because I'm planning to make shared libraries
of libwww for Linux and the general policy there is that major
number only goes up if the library is binary incompatible.  Is
the same true for the numbering of libwww versions?

> Ah - I see! However, I would change this part which is the next block from
> where your patch is applied. This is where the protocol module is deduced
> form the URL. You can try something like this (which could be made more
> elegant!)
> 
>     /* Find a protocol object for this access scheme */
>     {
>         char * proxy = HTRequest_proxy(request);
> 	 char * access = NULL;
> 	 if (!proxy) access = HTParse(physical, "", PARSE_ACCESS);
>         if ((protocol = HTProtocol_find(request, proxy ? proxy : access))
> == NULL) {
>             if (CORE_TRACE) HTTrace("Net Object.. NO PROTOCOL OBJECT\n");
>             HT_FREE(access);
>             return NO;
>         }
>         HT_FREE(access);
>     }

The above didn't quite work without some modification:

    /* Find a protocol object for this access scheme */
    {
	char * proxy = HTRequest_proxy(request);
	char * access = HTParse(proxy ? proxy : physical, "", PARSE_ACCESS);
	if ((protocol = HTProtocol_find(request, access)) == NULL) {
	    if (CORE_TRACE) HTTrace("Net Object.. NO PROTOCOL OBJECT\n");
	    HT_FREE(access);
	    return NO;
	}
	HT_FREE(access);
    }

Thank you very much for your speedy reply.

-- 
Debian GNU/Linux 1.1 is out! { http://www.debian.org/ }
Email:  Herbert Xu ~{PmV>HI~} <herbert@greathan.apana.org.au>
{ http://greathan.apana.org.au/~herbert/ }
PGP Key:  pgp-public-keys@pgp.mit.edu or any other key sites
Received on Tuesday, 26 November 1996 22:51:16 GMT

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