felixlu / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

https problem #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. visit twitter and login
2. proxy not work when change http to https
3. error of firefox

What is the expected output? What do you see instead?

OUTPUT: GET
http://www.google-analytics.com/__utm.gif?utmwv=4.6.5&utmn=1513459688&utmhn=twit
ter.com&utmcs=UTF-8&utmsr=1024x600&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=10.0%2
0r42&utmdt=Twitter&utmhid=778212697&utmr=-&utmp=%2F&utmac=UA-30775-6&utmcc=__utm
a%3D43838368.1918635535.1270626697.1270626697.1270626697.1%3B%2B__utmz%3D4383836
8.1270626697.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B%2B__
utmv%3D43838368.lang%253A%2520en%3B
HTTP/1.1
Host: www.google-analytics.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8)
Gecko/20100215 Ubuntu/9.04 (jaunty) Shiretoko/3.5.8
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language:
zh-tw,zh-hk;q=0.9,zh;q=0.8,zh-cn;q=0.6,zh-sg;q=0.5,en-us;q=0.4,en;q=0.3,ja;q=0.1
Accept-Encoding: gzip,deflate
Accept-Charset: Big5,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://twitter.com/

END OUTPUT
BEGIN INPUT
END INPUT
BEGIN INPUT
END INPUT
BEGIN INPUT
END INPUT
FORWARD TO HTTP PROXY SERVER
FORWARD TO HTTP PROXY SERVER

What version of the product are you using? On what operating system?

APJP version 0.2.1 on ubuntu9.04 , vista sp2 both 32bit os, with sun java
1.6 install

Please provide any additional information below.

on ubuntu, I change the APJP.bat be a shell script, and delete ^M at the
end. \n\r to \n

 #! /bin/sh
java -Djavax.net.ssl.keyStore=APJP.jks
-Djavax.net.ssl.keyStorePassword=password -jar ./APJP.jar ./APJP.properties

Original issue reported on code.google.com by twf...@gmail.com on 7 Apr 2010 at 8:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
What version of PHP are you using? Is OpenSSL support enabled? Can you test your
version of PHP with the attached PHP script?
What version of FIREFOX are you using? What error does FIREFOX show?

Original comment by jeroen.v...@gmail.com on 7 Apr 2010 at 5:38

Attachments:

GoogleCodeExporter commented 8 years ago
I have downloaded test.php and upload to web hosting, this is result
test PHP
OK
test filters
OK
test HTTP
OK
test HTTPS
OK

Original comment by twf...@gmail.com on 12 Apr 2010 at 9:08

GoogleCodeExporter commented 8 years ago
What version of FIREFOX are you using? What error does FIREFOX show?

If you see THIS CONNECTION IS UNTRUSTED
- click I UNDERSTAND THE RISKS
- click ADD EXCEPTION...
- click GET CERTIFICATE
- check PERMANENTLY STORE THIS EXCEPTION
- click CONFIRM SECURITY EXCEPTION

Original comment by jeroen.v...@gmail.com on 12 Apr 2010 at 4:22

GoogleCodeExporter commented 8 years ago
FIREFOX 3.5.9:

資料傳輸中斷(Data transmission interrupted) 載入頁面時與 
twitter.com 的連線中斷
(Loading page connection with the interruption twitter.com)

APJP:

User@User-PC ~
$ ./APJP
JAVA_PROXY_SERVER_ADDRESS: 127.0.0.1
JAVA_PROXY_SERVER_PORT: 10000
BEGIN OUTPUT
EXCEPTION: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext 
connection?
BEGIN OUTPUT
EXCEPTION: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext 
connection?
FORWARD TO HTTP PROXY SERVER
BEGIN OUTPUT
OUTPUT: POST
http://safebrowsing.clients.google.com/safebrowsing/downloads?client=navclient-a
uto-ffox&appver=3.5.9&pver=2.2&wrkey=AKEgNiv4baIfBMRVHnUBgEysNgsHWbHkcx2r1981Ysg
NVETd1752gM82PEeXduRbrjhSb33j5CrInZzZFXN1TeBKIt6QH0CmKA==
HTTP/1.1
Host: safebrowsing.clients.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-TW; rv:1.9.1.9)
Gecko/20100315 Firefox/3.5.9
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-tw,zh-hk;q=0.8,en-us;q=0.7,zh-cn;q=0.5,en;q=0.3,ja;q=0.2
Accept-Encoding: gzip,deflate
Accept-Charset: Big5,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Content-Length: 102
Content-Type: text/plain

END OUTPUT
BEGIN INPUT
END INPUT

Original comment by jeroen.v...@gmail.com on 15 Apr 2010 at 1:08

GoogleCodeExporter commented 8 years ago
APJP.properties:

JAVA_PROXY_SERVER_ADDRESS=127.0.0.1
JAVA_PROXY_SERVER_PORT=10000

JAVA_HTTP_PROXY_SERVER_ADDRESS=127.0.0.1
JAVA_HTTP_PROXY_SERVER_PORT=10080

JAVA_HTTPS_PROXY_SERVER_ADDRESS=127.0.0.1
JAVA_HTTPS_PROXY_SERVER_PORT=10443

FIREFOX 3.5.9:

HTTP PROXY: 127.0.0.1:10000
SSL PROXY: 127.0.0.1:10443 but must be 127.0.0.1:10000!

Original comment by jeroen.v...@gmail.com on 15 Apr 2010 at 1:16

GoogleCodeExporter commented 8 years ago
I have a same problem,but I use Safari 4 on Mac OS,when I login to 
twitter.com,It will auto change to SSL mode 
and stop to there.
I use the http proxy:127.0.0.1:10000 the https proxy is empty.
pls help me!
Thx!

Original comment by mailt...@gmail.com on 19 Apr 2010 at 6:04

GoogleCodeExporter commented 8 years ago
Web Proxy (HTTP) should be 127.0.0.1:10000
Secure Web Proxy (HTTPS) should be 127.0.0.1:10000

Does that help?

Original comment by jeroen.v...@gmail.com on 19 Apr 2010 at 8:48

GoogleCodeExporter commented 8 years ago
I think that the port 10000 of my computer has been blocked by someone,when I 
change to another port,it 
seems more faster.but twitter is also hard to login when I use your 
decision.Thank you.

Original comment by mailt...@gmail.com on 20 Apr 2010 at 8:09

GoogleCodeExporter commented 8 years ago
If port 10000 is blocked, you can use another port, for example 11000.

APJP.properties:

JAVA_PROXY_SERVER_ADDRESS=127.0.0.1
JAVA_PROXY_SERVER_PORT=11000

JAVA_HTTP_PROXY_SERVER_ADDRESS=127.0.0.1
JAVA_HTTP_PROXY_SERVER_PORT=11080

JAVA_HTTPS_PROXY_SERVER_ADDRESS=127.0.0.1
JAVA_HTTPS_PROXY_SERVER_PORT=11443

Original comment by jeroen.v...@gmail.com on 20 Apr 2010 at 12:05

GoogleCodeExporter commented 8 years ago
Are you able to use twitter? Are you able to log in?

Original comment by jeroen.v...@gmail.com on 20 Apr 2010 at 12:09

GoogleCodeExporter commented 8 years ago
When I use apjp,I can not login to twitter.While I use tor to login twitter,I 
can use apjp to receive tweets,but can 
not post tweets.

Original comment by mailt...@gmail.com on 20 Apr 2010 at 3:15

GoogleCodeExporter commented 8 years ago
What version of PHP are you using? Is OpenSSL support enabled? Can you test your
version of PHP with the attached PHP script?

What browser are you using? What are the proxy settings of your browser?

Original comment by jeroen.v...@gmail.com on 20 Apr 2010 at 7:38

Attachments:

GoogleCodeExporter commented 8 years ago
maybe it's caused by a bug of jre
the jre version must >=1.6.0_12

Original comment by xmxsuperstar@gmail.com on 24 Apr 2010 at 6:05

GoogleCodeExporter commented 8 years ago
in AJPJ, in java property, if i add 
APJP_LOCAL_HTTP_SERVER_REQUEST_URL_IP=yoursite.com and 
APJP_LOCAL_HTTP_SERVER_REQUEST_URL_port=80 close to 
APJP_LOCAL_HTTP_SERVER_REQUEST_URL=yoursite.com/HTTPS.php OR HTTP.php, will it 
take affect or work?. please add url ip and port.
so we can use it like this
apjp.....url=yourstite.com/proxy/HTTP.php
apjp.....url host=yoursite.com
apjp....url port=80,8080, or any webserver port.
it will be useful and helpful.

Original comment by necis...@gmail.com on 28 Nov 2010 at 1:41

GoogleCodeExporter commented 8 years ago
you can already do that with APJP-0.7.0

in APJP.properties:
APJP_LOCAL_HTTP_SERVER_REQUEST_URL=http://yoursite.com/HTTP.php
APJP_LOCAL_HTTP_SERVER_REQUEST_PROPERTY_1_KEY=Host
APJP_LOCAL_HTTP_SERVER_REQUEST_PROPERTY_1_VALUE=yoursite.com
or
APJP_LOCAL_HTTP_SERVER_REQUEST_PROPERTY_1_VALUE=yoursite.com:80

Original comment by jeroen.v...@gmail.com on 28 Nov 2010 at 9:30