Re: KDE 3.2-beta2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 29 September 2002 13:38, Karolina Lindqvist wrote:
> Ok, I have figured out why it does not work. The cgi-script is sending the
> correct IP-address with a <meta http-equiv="refresh" content="0;
> url=x.y.z..> and APT-HTTP and wget and things like that just don't
> understand that.
>
> Sorry, then I just don't know how to make apt-get translate the ip address,
> so I don't know how to make a working sources.list string.
I don't know if apt will respect it, but the correct way of doing what you
want would be for your cgi program to return a HTTP 302 code, telling the
agent/client (apt in this case) to use a different IP/location/URI.
If you use 302 as oppsed to 301, then the client (apt) will still go to the
cgi program each time it is run, and not cache the new location/URI.
The HTTP header should contain something similar to:
HTTP/1.0 302 Found
Location: http://a.b.c.d/~path/to/files
If you post your code, I'm sure someone will help you modify it.
Paul Cupis
- --
paul@cupis.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9lvd5IzuKV+SHX/kRAkITAJ4lLRRUfRtp4SccoHAtxaojyGvwlACaAkoq
6Stj9sYyQgeNR74KgPnpPC0=
=nCYt
-----END PGP SIGNATURE-----
Reply to: