views:

577

answers:

1

getting following exception while making call using XMLHttp object asynchronously in mozila firefox. can anybody help me to resolve this issue?

407 Proxy Authentication Required The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.

Description of cause-

actually i am trying to make async request to using get in javascript it is working fine for ie6 but for ie 7 and firefox 3.5 it will it wont get any data using async request so how to overcome this problem when i debug in firfox 3.5 using firebug it shows

407 Proxy Authentication Required The ISA Server requires authorization to fulfil the request. Access to the Web Proxy filter is denied.

exception at console so how to tackle this issue

Note : our network has proxy server

A: 

Proxy Authentication is simply an existence of a http header field called "Proxy-Authorization"

Browsers are supposed to send those stuff automatically.

But since you could add some custom header to ajax requests, you could try setting it manually.

request.setRequestHeader("Proxy-Authorization", value);
  • request is the XMLHttp object
  • value is the base64 encoded version of username:password

Note that I am not sure thats the case or not, correct me if I am wrong.

Or some page I found on google says to add X-Requested-With, may be worth to try that too.

request.setRequestHeader("X-Requested-With", "XMLHttpRequest");
S.Mark
thanks for your response but i make other work around for this issue and handled that one at server side itself rather than client sideBut i will try your suggestion also
Neo