From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100798 Path: news.gmane.org!.POSTED!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Files on a server Date: Wed, 16 May 2018 11:31:20 +0200 Message-ID: <69D183B2-1264-4399-A805-591A82569287@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/mixed; boundary="===============6322951868049324099==" X-Trace: blaine.gmane.org 1526462989 14344 195.159.176.226 (16 May 2018 09:29:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 May 2018 09:29:49 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed May 16 11:29:45 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIskj-0003ds-Hx for gctc-ntg-context-518@m.gmane.org; Wed, 16 May 2018 11:29:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7497328B35; Wed, 16 May 2018 11:31:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BpR29DYjQlOV; Wed, 16 May 2018 11:31:34 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id AFEBA28B29; Wed, 16 May 2018 11:31:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5BCC528B2D for ; Wed, 16 May 2018 11:31:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E9TCImt0rdgi for ; Wed, 16 May 2018 11:31:31 +0200 (CEST) Original-Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6C4BE28B23 for ; Wed, 16 May 2018 11:31:21 +0200 (CEST) Original-Received: from [212.54.42.110] (helo=smtp7.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1fIsmH-0003Yp-4s for ntg-context@ntg.nl; Wed, 16 May 2018 11:31:21 +0200 Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.10]) by smtp7.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1fIsmH-0006OA-3A for ntg-context@ntg.nl; Wed, 16 May 2018 11:31:21 +0200 X-Mailer: Apple Mail (2.3445.6.18) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=RPyd4bq+ c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=VUJBJC2UJ8kA:10 a=YGgp-goRAAAA:8 a=F-3HyiT0klh9LLDpav0A:9 a=CjuIK1q_8ugA:10 a=Kt-_1Krl5683uZw4:21 a=_W_S_7VecoQA:10 a=jGrNUvj8ck4JNooP3QZQ:22 none X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100798 Archived-At: --===============6322951868049324099== Content-Type: multipart/alternative; boundary="Apple-Mail=_07A1CAB1-FF8C-499B-AA74-659A33695E32" --Apple-Mail=_07A1CAB1-FF8C-499B-AA74-659A33695E32 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I tried to determine the existence of a file on the internet. See the = following macro call: % Test if file exists. = \edef\theurl{\linkprotocol://\urlbase\xmlatt{#1}{link}\thesuffix} \doiffileelse {\theurl} {\verbose{HVDM-PEV-TEST}{file exists: \theurl}} {\verbose{HVDM-PEV-TEST}{file does not exist: \theurl}} It seems that \doiffileelse always results in true except for local = files where nonexistence is correctly handled. For example the following url definitely does not exist but nevertheless = \doiffileelse reports its existence: HVDM-PEV-TEST > file exists: = http://hansvandermeer.myqnapcloud.com/archive/denhaag/hga-dtb-1869-6040.pd= f Is it possible that the \doiffile macros are extended for files on the = internet or a correponding set \doifurl is developed? Hans van der Meer --Apple-Mail=_07A1CAB1-FF8C-499B-AA74-659A33695E32 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = tried to determine the existence of a file on the internet. See the = following macro call:

  =       % Test if file exists.
        = \edef\theurl{\linkprotocol://\urlbase\xmlatt{#1}{link}\thesuffix}<= /div>
    =     \doiffileelse
        = {\theurl}
        {\verbose{HVDM-PEV-TEST}{file = exists: \theurl}}
        {\verbose{HVDM-PEV-TEST}{file = does not exist: \theurl}}

It seems that \doiffileelse always = results in true except for local files where nonexistence is correctly = handled.

For = example the following url definitely does not exist but nevertheless = \doiffileelse reports its existence:

Is it possible that the \doiffile macros are extended for = files on the internet or a correponding set \doifurl is = developed?

Hans = van der Meer

= --Apple-Mail=_07A1CAB1-FF8C-499B-AA74-659A33695E32-- --===============6322951868049324099== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6322951868049324099==--