Re: [squid-users] a problem about reverse proxy and $.ajax

2015-07-17 Thread Kinkie
Hi,
  What is in the squid access.log for that request?

On Thu, Jul 16, 2015 at 5:27 PM, johnzeng johnzeng2...@yahoo.com wrote:


 Hello dear All :

 i am writing testing download rate program recently ,

 and i hope use reverse proxy ( squid 3.5.x) too ,

 but if we use reverse proxy and i found Ajax won[t succeed to download

 , and success: function(html,textStatus) -- return value ( html ) is blank
 .


 if possible , please give me some advisement .



 squid config

 http_port 4432 |accel| vport defaultsite=10.10.130.91
 |cache_peer 127.0.0.1 parent 80 0 default name=ubuntu-lmr  |



 Ajax config

 $.ajax({
 type: GET,
 url: load_urlv,
 cache: false,
 mimeType: 'text/plain; charset=x-user-defined',

 beforeSend: function(){
 $('#time0').html('blinkdownload file.../blink').show();
 },

 error: function(){
 alert('Error loading XML document');
 },
 success: function(html,textStatus)
 {

 ...

 }


 ___
 squid-users mailing list
 squid-users@lists.squid-cache.org
 http://lists.squid-cache.org/listinfo/squid-users




-- 
Francesco
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] a problem about reverse proxy and $.ajax

2015-07-17 Thread Amos Jeffries
On 17/07/2015 8:08 p.m., Kinkie wrote:
 Hi,
   What is in the squid access.log for that request?
 

... and the cache.log output for it when debug_options 11,2 is used.

Amos

 On Thu, Jul 16, 2015 at 5:27 PM, johnzeng wrote:
 

 Hello dear All :

 i am writing testing download rate program recently ,

 and i hope use reverse proxy ( squid 3.5.x) too ,

 but if we use reverse proxy and i found Ajax won[t succeed to download

 , and success: function(html,textStatus) -- return value ( html ) is blank
 .


 if possible , please give me some advisement .



 squid config

 http_port 4432 |accel| vport defaultsite=10.10.130.91
 |cache_peer 127.0.0.1 parent 80 0 default name=ubuntu-lmr  |



 Ajax config

 $.ajax({
 type: GET,
 url: load_urlv,
 cache: false,
 mimeType: 'text/plain; charset=x-user-defined',

 beforeSend: function(){
 $('#time0').html('blinkdownload file.../blink').show();
 },

 error: function(){
 alert('Error loading XML document');
 },
 success: function(html,textStatus)
 {

 ...

 }


 ___
 squid-users mailing list
 squid-users@lists.squid-cache.org
 http://lists.squid-cache.org/listinfo/squid-users

 
 
 
 
 
 ___
 squid-users mailing list
 squid-users@lists.squid-cache.org
 http://lists.squid-cache.org/listinfo/squid-users
 

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users