- downloader with proxy support - Was: Updates - Linz Oberon

From: [at]} <Koen>
Date: Fri, 23 Feb 2007 02:51:58 +0100

----boundary-LibPST-iamunique-750713395_-_-
Content-type: text/plain

Hello Bernhard,

Thanks for the addition!
I have uploaded a new version here: www.geocities.com/koen_desaeger/PrivDownload.txt

I changed proxy support a bit: you have to add the following entries to Priv/Rsrc/Strings:

proxyHost 66.98.238.8
proxyPort 3128

if proxyPort is omitted, the default of 8080 is used.

The above example values are from http://proxy-list.org/en/ and worked fine on my machine. I suppose
this will work with your firewall values too.

I added the following procedure:
        PROCEDURE DownloadFile* ( IN host, resource: ARRAY OF CHAR; ask: BOOLEAN );
This is called by 'Do' with ask = TRUE -- displays the Save As dialog
If ask = FALSE, and a filename and extension can be extracted from the url, the file is downloaded
to BlackBox/Downloads (without overwrite-prompt, probably should change that)

If we glue together Douglas's 'Update', the Pac Api and this Download module, an Auto-Update
mechanism is not far away? For starters, we could implement the following:
- a scheduler checks Cpc, say on a weekly basis
- modified files are downloaded
- use Pac Api to extract all files from the downloaded archive
- display the Quick-Start document

Some other changes to PrivDownload are:
- the 'host' may optionally contain a port number
- download file name and extention suggestions are displayed in the Save As dialog if they can be
derived from the url

I hope i can write some documentation this weekend, maybe it could be published on Cpc.

Brgds,
Koen.

On Wed, 21 Feb 2007 11:30:16 +0100, you wrote:

>Dear Koen & Doug,
>
>just experimented a little bit with our proxy (after having
>read some of http://www.jmarshall.com/easy/http/ ... :-)
>
>and tried to add support for those people who are sitting
>behind a firewall, it worked on the fifth cycle ...
>
>regards
>--
> Bernhard Treutwein, IuK, Ref. III A 3

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-750713395_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlh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