home | list info | list archive | date index | thread index

[OCLUG-Tech] Url Proxy rewriting stuff

Okay, here's the situation. The university of Ottawa has a weird setup
for accessing internal documents.  I can't quite figure out how to make
this a bit more automated.

They have a not-a-proxy-proxy that you must use.  I wish it were a
proxy...that would make life so much easier.

Example.

I want to access a document:

http://pubs.acs.org/cgi-bin/asap.cgi/joceah/asap/pdf/jo702189k.pdf

If you click the link they'll want you to pay money.

The base URL at Uottawa is:

https://login.proxy.bib.uottawa.ca/login?url=

If I want to access the ACS document I need to concatenate the two
together.

https://login.proxy.bib.uottawa.ca/login?url=http://pubs.acs.org/cgi-bin/asap.cgi/joceah/asap/pdf/jo702189k.pdf

Which seems to get magically (by the proxy), rewritten as:

http://pubs.acs.org.proxy.bib.uottawa.ca/cgi-bin/asap.cgi/joceah/asap/pdf/jo702189k.pdf



I tried using the mozilla quick search thing...so I setup a bookmark
with a keyword 'acs' and a URL of:

https://login.proxy.bib.uottawa.ca/login?url=%s

but the %s expands the url so I get  %2F's and stuff :(

Any ideas?
mh

-- 
Martin Hicks || mort [ at ] bork [ dot ] org || PGP/GnuPG: 0x4C7F2BEE