Post Reply 
The best way to use $RDIR ?
Jun. 20, 2012, 01:27 AM
Post: #1
The best way to use $RDIR ?
i've lousy internet connection,
after reading the proxomitron help file, i decided to make use of the $RDIR.

I made a sub-directory on proximotron's "html" directory, say "Pre-Cache"
and place various files (mainly .js and .css but also some .jpg or *.png) from sites that i frequently visit on that subdirectory.
I also made a list file to accomodate the downloaded files, like this:
Code:
...
http://mail.yimg.com/zz/combo\?/nq/mc/15_0_2/js/im_blue_all.js\&/nq/mc/15_0_2/js/us_strings.js\&/nq/mc/15_0_2/js/msgr.js(^?)$SET(0=aef26fdf.js)
...
Then made the http filter like this:
Code:
[HTTP headers]

In = FALSE
Out = TRUE
Key = "URL: PreFetched js-css cache (out)"
Match = "$LST(preLoadList)"
Replace = "$RDIR(http://Local.ptron/Pre-Cache/\0)"

I'm not using sidki filter sets yet, i've download it for references, but theres many of sidki's filters that i haven't understand.

1. What is the "!:" http-header filter? Proxomitron help files doesn't explain about it.

2. Its seem possible to modifiy my filter above to works on "!:" would this give better performance ?

3. Some sites began to use https for their .js & .css.
How to make that https url request shown in http://local.ptron/.pinfo/urls/ ?
I might need it to ease download-manager downloading the proper files.

4. What modification necessery to allow https request also intercepted by my filter ?

Sorry for lot of questions, I trully want to know.
Add Thank You Quote this message in a reply
Jun. 20, 2012, 03:17 AM
Post: #2
RE: The best way to use $RDIR ?
(Jun. 20, 2012 01:27 AM)joey_sw Wrote:  1. What is the "!:" http-header filter? Proxomitron help files doesn't explain about it.

Some sets, sidki's, require the header filters to be applied in a certain order.
Things like "!:" can allow us to control order of header filter application.
However, the presence of a "URL:" style filter may cause the header filters to reorder.

(Jun. 20, 2012 01:27 AM)joey_sw Wrote:  2. Its seem possible to modifiy my filter above to works on "!:" would this give better performance ?

Change in performance would depend on set.
Note: "URL:" allows direct test for protocol in Match.

http://sidki.proxfilter.net/prox/sidki-etc/ReadMe.txt

Quote:*******************************************************************************
Importing URL Header Filters
*******************************************************************************

Don't import "URL:" style header filters into this config without editing!
They have a special status which lets the header filters sort order swap
between two states, making the order in which the filters match unpredictable.

Converting a "URL:" filter to one that doesn't interfere is easy:

Old:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: Kill somesite.com (Out)"
Match = "http://somesite.com/"
Replace = "\k"

New:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "!-|||||||||||| URL: Kill somesite.com (Out)"
URL = "somesite.com/"
Replace = "\k"

If you need to match the protocol, there is a global variable "uProt" for that:
URL = "somesite.com/&$TST(uProt=http:)"

(Jun. 20, 2012 01:27 AM)joey_sw Wrote:  3. Some sites began to use https for their .js & .css.
How to make that https url request shown in http://local.ptron/.pinfo/urls/ ?
I might need it to ease download-manager downloading the proper files.

Set browser to send https to Proxomitron. Have the Proxomitron filter https.

However, if the files are called from an http page, web page filters can redirect.

(Jun. 20, 2012 01:27 AM)joey_sw Wrote:  4. What modification necessary to allow https request also intercepted by my filter ?

Download and extract certs.zip, proxcert.zip, and openssl-0.9.8-mod-rev1.zip to the Proxomitron program's home directory. http://proxomitron.info/files/index.html

Enable filtering of https. http://proxomitron.info/45/help/CfgT5.html#foo
Click "Config" on the Proxomitron's mainscreen. http://proxomitron.info/45/help/Mainscreen.html
Click "HTTP" on the Preference Settings dialog. http://proxomitron.info/45/help/CfgT5.html#foo

Set browser to send https to Proxomitron.

HTH


Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: