Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14762 closed bug (notabug)

Not able to capture 302 redirect using ajax statusCode

Reported by: learn.shiva@… Owned by: learn.shiva@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.0-rc1
Keywords: Cc:
Blocked by: Blocking:

Description

I'm not able to capture 302 redirect using Ajax statusCode. I see that ajax redirect follows redirect and gives out 200 ok.

Change History (2)

comment:1 Changed 6 years ago by dmethvin

Owner: set to learn.shiva@…
Status: newpending

Can you provide a test case? Thanks.

comment:2 Changed 6 years ago by jaubourg

Resolution: notabug
Status: pendingclosed

That's how XMLHttpRequest works. It transparently follows redirects: http://stackoverflow.com/questions/228225/prevent-redirection-of-xmlhttprequest

Note: See TracTickets for help on using tickets.