+  HandyCache форум
|-+  Главная категория» English forum» Convert Proxomitron Rules
Имя пользователя:
Пароль:
Страниц: [1]   Вниз
  Отправить эту тему    Печать  
Автор Тема: Convert Proxomitron Rules  (Прочитано 7246 раз)
0 Пользователей и 1 Гость смотрят эту тему.
nirvanerz
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 1


« : 13 марта 2012, 21:03:18 »

hai there  Веселый
i am newly handy cache user from indonesia
i have a question to ask  lol

i wonder, whether handychace have the same functionality like Proxomitron? does it support ssl site?

if it have same functionality, how can i convert / add proxomitron rules to handy cache?
if the rule

Header filter : OUT
HTTP HEADER : URL
URL Match     : $RDIR(\u#?somesite.com/)


an explanation about  $RDIR(\u#?somesite.com/) .
i brought it from proxomitron official site,
 its an url silent redirections as you see.


Цитировать
The URL: header

Sometimes you may want to change a web page's URL itself. Although not really a header, Proxomitron will treat the name "URL:" as a special URL header filter. In this case the match will be the full URL (including the http:// part that the normal URL match ignores).

In the replacement text you'll probably want to use one of the redirect matching commands. There are two $JUMP(someurl) and $RDIR(someurl). Both will redirect the connection to a new (possibly different) URL.

$JUMP( ) works by sending a redirect back to your browser and letting it do the work. This is handy because it browser will know it's got a new URL and display it correctly in the location bar.

$RDIR( ) Is more sneaky and redirects the connection in Proxomitron without telling your browser. This is useful when you want your browser to think it going one place when, in reality, it's going somewhere else.

Here's an example of using the URL: header to redirect a URL. This filter will convert a hostname like "some-site" to "www.some-site.com". It just adds "www." and ".com" to any hostname without any periods (note: this filter would be enabled under the "out" column).

HTTP Header = URL: Dot-Communize dotless hostnames (out)
Match = http://([^./]+)\1/\2
Replace = $JUMP(http://www.\1.com/\2)

Here's the important features of this filter...

    The header name begins with "URL: ...." This tells it we want to filter the URL itself.
    The match checks for a hostname that lacks any dots or slashes ([^./]) and captures this into variable "\1". Variable "\2" then captures the rest of the path. (see the Matching Rules for all the gory details).
    Finally, in the replace, we take the parts of the original URL we captured and use them to cobble together a new URL for the $JUMP(...) command.

thanks in advance
regards


« Последнее редактирование: 13 марта 2012, 21:19:41 от nirvanerz » Сообщить модератору   Записан
mai62
Автор HC
*****

Репутация: +226/-4
Offline Offline

Сообщений: 6383


« Ответ #1 : 14 марта 2012, 02:29:56 »

Цитировать
does it support ssl site?
No.
Цитировать
Header filter : OUT
HTTP HEADER : URL
URL Match     : $RDIR(\u#?somesite.com/)
I do not know that means "\u#?". Give examples of input and output URL.
Сообщить модератору   Записан
mirny
Пользователь
**

Репутация: +11/-1
Offline Offline

Сообщений: 84


« Ответ #2 : 23 марта 2012, 18:20:29 »

nirvanerz, "Redirect List" is responsible for what you're looking for. Didn't it come to your mind yet?
Сообщить модератору   Записан
kyushadow
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 29



« Ответ #3 : 28 сентября 2012, 01:37:57 »

Perhaps what nirvanerz means is that he want to ask is handycache support cache https port 443
coz in proxomitron forum one of the member share program named ProxHTTPSProxy made with
phyton language that also need to install open ssl to cache https like facebook or gmail,
if handycache support what kind of rule he need to input on handycache? CMIIW Веселый
Сообщить модератору   Записан

IMPOSSIBLE IS NOTHING
mai62
Автор HC
*****

Репутация: +226/-4
Offline Offline

Сообщений: 6383


« Ответ #4 : 28 сентября 2012, 11:55:51 »

Use ProxHTTPSProxy as an parent proxy for HandyCache.
ProxHTTPSProxy can be connected using a list of Conditional proxy. Use rule ":443".
Сообщить модератору   Записан
mirny
Пользователь
**

Репутация: +11/-1
Offline Offline

Сообщений: 84


« Ответ #5 : 29 сентября 2012, 00:46:20 »

kyushadow, I didn't understand at first, thanx for the info.
It turns out the only thing necessary for HC to work with ProxHTTPSProxy is the rule in "Conditional proxies" list.

Here it is, enjoy.

Код:
#8#~#True#~#https caching via ProxHTTPSProxy#~#HTTP#~#127.0.0.1#~#8081#~##~##~#(^https://|^http://[^:/]+:443)
« Последнее редактирование: 29 сентября 2012, 00:54:11 от mirny » Сообщить модератору   Записан
reges007
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 29


« Ответ #6 : 29 сентября 2012, 18:18:03 »

here video step by step using ProxHTTPSProxy with handycache

http://www.youtube.com/watch?feature=player_embedded&v=BVd_cOfteSM
Сообщить модератору   Записан
kyushadow
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 29



« Ответ #7 : 29 сентября 2012, 22:56:10 »

waduh ketemu master reges maneh nang kene  Веселый
hatur tank you video tutorialnya  Подмигивающий
Сообщить модератору   Записан

IMPOSSIBLE IS NOTHING
mirny
Пользователь
**

Репутация: +11/-1
Offline Offline

Сообщений: 84


« Ответ #8 : 30 сентября 2012, 02:59:51 »

reges007, suddenly I've googled your scheme before, while trying to make ProxHTTPSProxy work; still can't get a meaning of the redirecting rule, also it didn't work on my system (due to redirecting loop).
Сообщить модератору   Записан
kyushadow
Новичок
*

Репутация: +0/-0
Offline Offline

Сообщений: 29



« Ответ #9 : 30 сентября 2012, 07:38:51 »

upss forgot to use english, thanks mai62 for the clue, also thanks to mirny for the rule, already tested and work great Улыбка
Сообщить модератору   Записан

IMPOSSIBLE IS NOTHING
Страниц: [1]   Вверх
  Отправить эту тему    Печать  

 
Перейти в: