source: trunk/SimpleJavaProxy/src/simplejavaproxy/Main.java @ 6

Last change on this file since 6 was 6, checked in by fmguler, 14 years ago

SimpleJavaProxy? safari üzerinden çalışabilen versiyonu. Browser (User Agent) cookie davranışını simüle eder. Sunucudan gelen cookie'leri domainlere göre maplerde tutar. Bu domainlere cookieleri geri gönderir. Sunucu bu proxyden geçen browserları tek browser zannetmesi için bunu yapar.

Çalışmıyordu, eğer bizde bu site için cookie yoksa browserda varsa (origCookie) onu gönder deyince çalışmaya başladı. Javascriptten login sırasında cookie manipüle ediyor sanırsam. Key değeri hiç bir zaman sunucuda set edilmiyor.

Çalışması için, browserdan bir kere normal login olup sonra proxy ayarını yapmak lazım.

File size: 455 bytes
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6package simplejavaproxy;
7
8/**
9 *
10 * @author fmguler
11 */
12public class Main {
13
14    /**
15     * @param args the command line arguments
16     */
17    public static void main(String[] args) {
18        // TODO code application logic here
19        SimpleProxy.main(new String[]{"9999","127.0.0.1","8888"});
20        //SimpleProxy.main(new String[]{"9999"});
21    }
22
23}
Note: See TracBrowser for help on using the repository browser.