Link to home
Start Free TrialLog in
Avatar of JRR75
JRR75

asked on

AJAX JQUERY POST 302 response

We have 2 different domain URL Rest endpoint, Any post to the URL www.firstdomain.com/getFees forwarded to www.seconddomain.com/getFees using .htaccess rewriterule.

If the post generated from HTTP Client .NET/JAVA objects works fine, but when I post the request through JQUERY AJAX POST method  getting 302 response with  page not found error. Any pointers to resolve this issue appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JRR75
JRR75

ASKER

both http, first one is on linux based and second one is in windows.  It's a post to REST services endpoint.
The redirect should be handled by the browser - can you check if the sample I posted works for you in the browser you are using.

Have you tried in a different browser?
Avatar of JRR75

ASKER

Tried your sample in both Chrome and IE nothing happening.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JRR75

ASKER

yes i can see your sample working. How to post the data to t1050.php?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JRR75

ASKER

In fiddler i don't see the redirection from originating domain to a different domain, let me try with CORS/JASONP.