From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124484 invoked by alias); 3 May 2017 07:22:22 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 124464 invoked by uid 89); 3 May 2017 07:22:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*Ad:D*ab.ca, H*F:D*ab.ca, HContent-Transfer-Encoding:8bit X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 May 2017 07:22:20 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id 5oc7d43DgM9gt5oc8d68jK; Wed, 03 May 2017 01:22:21 -0600 X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=VbwyjTwffh0KLN_0cs4A:9 a=QEXdDO2ut3YA:10 Subject: Re: [PATCH setup 11/11] Use wininet for fetching URLs in direct (non-proxy) case (DO NOT APPLY) References: <20170428121205.12240-1-jon.turney@dronecode.org.uk> <20170428121205.12240-12-jon.turney@dronecode.org.uk> <3d79b33e-e067-c1df-9b90-084fb10dd272@dronecode.org.uk> <9452ab7f-986c-2394-8c24-6208e042787e@dronecode.org.uk> <506da115-b976-fdb2-bf1b-cec6addfbbbb@dronecode.org.uk> <0b6ab083-d470-c940-5557-d33be5c523cb@gmail.com> <664411e6-ac32-ab77-1b62-72bafc8bacd8@dronecode.org.uk> To: cygwin-apps@cygwin.com From: Brian Inglis Reply-To: Brian.Inglis@SystematicSw.ab.ca Message-ID: <6975a8b6-ea0d-7ffc-e4b8-348a69f8cbff@SystematicSw.ab.ca> Date: Wed, 03 May 2017 07:22:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <664411e6-ac32-ab77-1b62-72bafc8bacd8@dronecode.org.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfO9lukzyB9pRfnTIgzLSG2KE4drv/vAqxBW9eGoNECxc3KT/OfSVx4xACKmqCljVTZ3M9L3jftrfmlfZ7hTTQb9EJ7Dutyh7Fq54acHrhHgPFovCAlwJ +GZW9RwpH2cRl2eLnyTce4IfETdevrpPEB7HeFo2yoinm4783Nu0KC8WBYlw1agBZhec0IDV3Q80PA== X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00023.txt.bz2 On 2017-05-02 05:05, Jon Turney wrote: > On 02/05/2017 08:28, Åke Rehnman wrote: >> On 2017-05-01 22:45, Jon Turney wrote: > I'm pretty sure I've done that in the past, so I think it already > works. The form of file: URL required might not be strictly correct, > though, (I think file:////server/pathname/ ?) > I can't see how to get a file:// URL for a local directory to parse > correctly, though. URLs are like http://host/path - file://host/path; if no host is given, localhost is assumed in http:///path and file:///path file:/// is the local root but some browsers accept just / e.g. lynx on Cygwin and Linux - useful to test this stuff, as GUI browsers look up URL history for completions. Most Windows browsers require the drive at the start of the path so should accept file:///d|/ (HTML originally allowed ":" only after the proto, and before the password and port in proto://[[[user][:pswd]@]host[:port]]/path so d| was required but that was relaxed in IE, and later other browsers followed), so likely file:///C:/, just C:, maybe C:/, rarely or never /. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada