Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
i think your php hosting space has forced advertisements.
Original comment by Tintinch...@gmail.com
on 9 Feb 2013 at 9:57
but my server is paid and is not free webhostings....
is there any free webhosting which works with APJP?
Original comment by roshanra...@gmail.com
on 9 Feb 2013 at 10:00
1. Try to add "Content-Type: image/png" to APJP_REMOTE_PHP-1.0.0 / index.php
file:
APJP_APJP::$APJP_REMOTE_HTTP_SERVER_RESPONSE_PROPERTY_KEY[0] = 'Content-Type';
APJP_APJP::$APJP_REMOTE_HTTP_SERVER_RESPONSE_PROPERTY_VALUE[0] = 'image/png';
2. Not familiar with webhosting, so I can not recommend you one free webhosting
tonight and it is very late in my time(UTC+08:00), tomorrow, I will try to find
a free one which supports APJP. However, I do know quit a lot PaaS (Platform as
a Service) which works fine with APJP, such as GAE, CloudFoundry, AppFog,
OpenShift, dotCloud, Heroku and so on, though some of them are not a good idea
as a proxy.
Original comment by goknmuse
on 9 Feb 2013 at 3:57
thank you goknmuse for the reply
1- i did add image/png and Content-Type as you said but still does not work
2- i know a little bit of php so free servers is better but if you know an easy
PaaS which works fine with APJP let me know.
Original comment by roshanra...@gmail.com
on 11 Feb 2013 at 7:52
ok i could config and work with APJP on Heroku, but couldn't make it work with
openshift / DotCloud / CloudFoundry !?
also i could config and install GAE
and in my *****.appspot.com page i see
HTTP/HTTPS
HTTPServlet
HTTPSServlet
so it should have been installed right. but after running APJP_LOCAL.bat i get
following message:
C:\Users\Farshid\Desktop\APJP_LOCAL_JAVA-1.0.1>java -classpath APJP_LOCAL_JAVA-1
.0.1.jar APJP.Main
*****************************************************************************
*** ***
*** Welcome to the IAIK JCE Library ***
*** ***
*** This version of IAIK-JCE is licensed for evaluation, education, ***
*** research, and use in open-source projects only. ***
*** Commercial use of this software is prohibited. ***
*** For details please see http://jce.iaik.tugraz.at/sales/. ***
*** This message does not appear in the registered commercial version. ***
*** ***
*****************************************************************************
APJP: START_PROXY_SERVER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_PROXY_SERVER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_PROXY_SERVER_WORKERS
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_HTTP_PROXY_SERVER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_PROXY_SERVER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_PROXY_SERVER_WORKERS
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_SERVER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START_HTTP_SERVER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START_HTTP_SERVER_WORKERS
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_HTTPS_PROXY_SERVER
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_PROXY_SERVER
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_PROXY_SERVER_WORKE
RS
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_SERVERS
APJP: START_PROXY_SERVER: OK
APJP: TEST_HTTP_REQUESTS
APJP: HTTP_REQUEST/GET_HTTP_RESPONSE_MESSAGE: REQUEST: HEAD / HTTP/1.0
APJP: HTTP_REQUESTS/TEST: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/GET_HTTP_RESPONSE_MESSAGE
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:623)
at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:83)
at APJP.Main.main(Main.java:257)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://google.com/HTTP
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:426)
... 2 more
APJP: TEST_HTTP_REQUESTS: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUESTS/TEST
at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:107)
at APJP.Main.main(Main.java:257)
Caused by: APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/GET_HTTP_RESPONSE_MESS
AGE
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:623)
at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:83)
... 1 more
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://google.com/HTTP
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:426)
... 2 more
APJP: TEST_HTTP_REQUESTS: NOT OK
APJP: TEST_HTTPS_REQUESTS
APJP: HTTPS_REQUEST/GET_RESPONSE_MESSAGE: REQUEST: HEAD / HTTP/1.0
APJP: HTTPS_REQUESTS/TEST: EXCEPTION
APJP.HTTP11.HTTPSRequestException: HTTPS_REQUEST/GET_HTTP_RESPONSE_MESSAGE
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:623
)
at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:72)
at APJP.Main.main(Main.java:274)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://google.com/HTTPS
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:426
)
... 2 more
APJP: TEST_HTTPS_REQUESTS: EXCEPTION
APJP.HTTP11.HTTPSRequestException: HTTPS_REQUESTS/TEST
at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:96)
at APJP.Main.main(Main.java:274)
Caused by: APJP.HTTP11.HTTPSRequestException: HTTPS_REQUEST/GET_HTTP_RESPONSE_ME
SSAGE
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:623
)
at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:72)
... 1 more
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
https://google.com/HTTPS
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:426
)
... 2 more
APJP: TEST_HTTPS_REQUESTS: NOT OK
whats wrong?
Original comment by roshanra...@gmail.com
on 11 Feb 2013 at 12:01
Sorry, I can not keep my words. Yesterday is the first of the Chinese New Year,
so I am a little busy.
For APJP_REMOTE_PHP, you should edit APJP_LOCAL.properties (
https://github.com/jvansteirteghem/apjp/tree/master/APJP_REMOTE_PHP/src/main/ass
embly/APJP_REMOTE_PHP ):
APJP_REMOTE_HTTP_SERVER_1_REQUEST_URL=http://YOUR.DOMAIN.ADDRESS/?HTTP
APJP_REMOTE_HTTPS_SERVER_1_REQUEST_URL=http://YOUR.DOMAIN.ADDRESS/?HTTPS
"HTTP(S).php" has been replaced by "?HTTP(S)". Some guys made this kind of
mistake, so you should check it again.
Original comment by goknmuse
on 11 Feb 2013 at 12:34
--"so it should have been installed right"
You are right.
Some basic information you should know.
1. *.appspot.com is blocked / disturbed by the GFW( Great FireWall
http://en.wikipedia.org/wiki/Great_fire_wall#Technical_implementation ). If you
were in China, you are supposed to edit APJP_LOCAL.properties like this (
http://code.google.com/p/apjp/wiki/InstallGuideOnGAE#%E7%BC%96%E8%BE%91APJP_LOCA
L_JAVA/APJP_LOCAL.properties ), however, it is kind of outdated to antiGFW this
way.
2. If not, and you can directly visit *.appspot.com, you should edit your
APJP_LOCAL.properties:
APJP_REMOTE_HTTP_SERVER_1_REQUEST_URL=https://AppID.appspot.com/HTTP
APJP_REMOTE_HTTPS_SERVER_1_REQUEST_URL=https://AppID.sppspot.com/HTTPS
Original comment by goknmuse
on 11 Feb 2013 at 12:51
i could not resolve my php config so maybe later if you could check which free
hosting works with APJP i would appreciate so much
about GAE you were right, i used the proxy setting by editing "#
APJP_HTTP_PROXY_SERVER" and "# APJP_HTTPS_PROXY_SERVER" and it works like a
charm
thank you very much
Original comment by roshanra...@gmail.com
on 11 Feb 2013 at 1:11
--"ok i could config and work with APJP on Heroku"
Is it not enough for you? Using APJP with Heroku visits some website is not a
problem, however, it is not a good idea to proxy download or watching videos.
Neither is free webhostings. Paid server is out of this question. :P
I had tried to find a free webhostings today, however, I failed. awardspace.net
is free but does not support OPENSSL. What's more, PaaS is easy too, so I quit.
--"but my server is paid"
"PRE-INSTALLATION: install PHP >= 5.0.0 + MCRYPT >= 2.5.6 + OPENSSL >= 0.9.6" (
https://github.com/jvansteirteghem/apjp/tree/master/APJP_REMOTE_PHP/src/main/ass
embly/APJP_REMOTE_PHP ) Check your server if meet all those pre-installtions.
BTW, I am not good at English, and I am afraid you can not understand Chinese.
So you should spend more time following the readme.txt instructs, rather than
Wiki( Mostly, it is for Chinese who do not know much about computer. ).
Original comment by goknmuse
on 11 Feb 2013 at 1:15
hehehehe you are right since PaaS is working no need PHP but i was trying to
find other solution if this doesnt work
i thing i can copy APJP_LOCAL_JAVA-1.0.1 folder for GAE and use it in other
laptop right? but what about Heroku because i guess it use a SSH shared key
saved in my PC somewhere, is it possible to use it again in other PC?
another question what is the bandwith and speed limit of GAE and Heroku?
Thank you again for your help, and happy new year ;)
Original comment by roshanra...@gmail.com
on 11 Feb 2013 at 1:35
--"i can copy APJP_LOCAL_JAVA-1.0.1 folder for GAE and use it in other laptop
right?"
Right.
--"but what about Heroku because i guess it use a SSH shared key saved in my PC
somewhere, is it possible to use it again in other PC?"
Same to GAE.
--"another question what is the bandwith and speed limit of GAE and Heroku?"
GAE: https://developers.google.com/appengine/docs/quotas#Requests
Heroku: https://policy.heroku.com/aup and
https://devcenter.heroku.com/categories/billing
Original comment by goknmuse
on 11 Feb 2013 at 2:02
Original issue reported on code.google.com by
roshanra...@gmail.com
on 9 Feb 2013 at 9:13