Ce que j'ai vu: http://www.dapper.net/dapp-factory.jsp Dapper semble avoir résolu ce problème. Vous pouvez charger n'importe quel site externe et lancer javascript dessus. Je ne sais pas comment cela est fait. Ils utilisent proxy, comme http://www.worldofwarcraft.com charges. Worldofwarcraft.com va détecter n'importe quel proxy et le bloquer (j'ai testé cela).Pourquoi mon proxy est-il bloqué mais pas dapper?
le proxy j'utilise:
MA PROCURATION:
GET /ip/headers HTTP/1.1
Host: www.ioerror.us
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip
Connection: close
proxy pimpant:
GET /ip/headers HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12 (.NET CLR 3.5.30729) Dapper/0.6
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Host: www.ioerror.us
Une autre proxy qui ne charge pas worldofwarcraft.com
GET /ip/headers HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
question est ce qu'ils font différent qui permet worldofwarcraft.com de charger? – likeafly39
file_get_contents ("worldofwarcraft.com") le charge avec succès. mais comment rendre le JS et tout ça? c'est frustrant. – likeafly39
Leur proxy est quelque peu différent du vôtre? J'imagine que ça passe à travers certains en-têtes qui ne sont pas les vôtres, probablement avec un certain niveau de réécriture pour faire fonctionner les choses comme des cookies (surtout). –