home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2001 May
/
VPR0105A.BIN
/
OLS
/
BR98211
/
br98211.lzh
/
HTGET102.ZIP
/
htget.dif
< prev
next >
Wrap
Text File
|
1997-05-20
|
3KB
|
69 lines
Replied: Tue, 20 May 1997 09:58:48 +1000
Replied: Yury Semenov <yury@petre.odessa.ua>
Return-Path: petre!petre.odessa.ua!yury@snark.paco.odessa.ua
Received: from snark.paco.odessa.ua by alba.syd.dit.CSIRO.AU (8.6.12/1.06S)
id HAA09515; Tue, 20 May 1997 07:33:06 +1000
Received: from petre.UUCP (root@localhost)
by snark.paco.odessa.ua (8.8.5/8.8.5) with UUCP id VAA09982
for ken@syd.dit.csiro.au; Mon, 19 May 1997 21:32:35 +0300 (EET DST)
Received: by petre.odessa.ua (UUPC/@ v5.09gamma, 25Mar93);
Mon, 19 May 1997 21:15:12 +0300
To: ken@syd.dit.csiro.au
Message-Id: <AAlY9WpeI2@petre.odessa.ua>
Organization: JV Petrex
From: Yury Semenov <yury@petre.odessa.ua>
Date: Mon, 19 May 97 21:15:11 +0300 (GMT)
X-Mailer: dMail (Demos Mail v1.11a)
Subject: HTGET 1.0 and http_proxy
Lines: 49
Hi!
I made some changes in your HTGET 1.00 to provide access to www sites via
proxy. If such environment variable as HTTP_PROXY is defined then htget()
will send request not directly to specified URL but to proxy address.
Else HTGET works in usual way... In first case it is neccessary to add
something like following line into CONFIG.SYS file:
set HTTP_PROXY=proxy.paco.net:3128
And also question: Does you want to donate your program for FreeDOS Project?
It seems that it will be useful here. More info about FreeDOS Project you can
find at
http://sunsite.unc.edu/pub/micro/pc-stuff/freedos/freedos.html
All neccessary changes are between lines 341-359 of HTGET.C
--------------------------------------------------------------------------
if((proxy = getenv("HTTP_PROXY")) == NULL)
{
if (strnicmp(argv[0], strn("http://")) == 0)
argv[0] += sizeof("http://")-1;
/* separate out the path component */
if ((path = strchr(argv[0], '/')) == NULL)
{
host = argv[0];
path = "/"; /* top directory */
}
else
{
if ((host = malloc(path - argv[0] + 1)) == NULL)
{
(void)fprintf(stderr, PROGRAM ": Out of memory\n");
return (1);
}
host[0] = '\0';
strncat(host, argv[0], path - argv[0]);
}
}
else
{
host = proxy;
path = argv[0];
}
--------------------------------------------------------------------------
Yury
--
* Yury Semenov * yury@petre.odessa.ua * Fidonet#2:467/2 *