From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128281 invoked by alias); 3 May 2017 16:37:01 -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 128240 invoked by uid 89); 3 May 2017 16:36:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-languages-length:1496, GUI, Hx-spam-relays-external:ESMTPA, HContent-Transfer-Encoding:8bit X-HELO: out4-smtp.messagingengine.com Received: from out4-smtp.messagingengine.com (HELO out4-smtp.messagingengine.com) (66.111.4.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 May 2017 16:36:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4258D20D01 for ; Wed, 3 May 2017 12:36:59 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 03 May 2017 12:36:59 -0400 X-ME-Sender: Received: from [192.168.1.102] (host31-51-207-210.range31-51.btcentralplus.com [31.51.207.210]) by mail.messagingengine.com (Postfix) with ESMTPA id E019C7E442 for ; Wed, 3 May 2017 12:36:58 -0400 (EDT) Subject: Re: [PATCH setup 11/11] Use wininet for fetching URLs in direct (non-proxy) case (DO NOT APPLY) To: cygwin-apps@cygwin.com 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> <6975a8b6-ea0d-7ffc-e4b8-348a69f8cbff@SystematicSw.ab.ca> From: Jon Turney Message-ID: <91fb8a3b-716b-e23c-efa8-fe972c59aee8@dronecode.org.uk> Date: Wed, 03 May 2017 16:37: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: <6975a8b6-ea0d-7ffc-e4b8-348a69f8cbff@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2017-05/txt/msg00028.txt.bz2 On 03/05/2017 08:22, Brian Inglis wrote: > 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 /. Yes. Unfortunately, none of this works correctly in setup at the moment. Incorrect URLs of the form 'file:////server/pathname/' work in setup, but my attempts to construct something setup would use as a file URL for a local directory were unsuccessful.