1

I'm debugging my code in Opera.

This is code:

$.ajax({
    type: 'POST',
    url: "http://super-site.com/actions.x",
    data: "act=super&url=puper",
    success: function(data){
        alert(data);
    }
}).error(function(data, textStatus, errorThrown){    
    alert(data.status);
});

I receive alert with text "404", but in Opera Network Inspector request returns 200, with needed data!

response:

HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Thu, 06 Jun 2013 01:07:43 GMT
Content-Type: text/html; charset=WINDOWS-1251
Connection: keep-alive
X-Powered-By: PHP/5.3.3-7+squeeze14
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 26

What has happend? (this is cross site scripting)

Jason
  • 15,017
  • 23
  • 85
  • 116
CrazyStack
  • 169
  • 2
  • 13

0 Answers0