Different ajax response for same parameter Ajax call
-
I have sent nr=widget&nl%5B%5D=0&ne=test%40gmail.com&preview=true&na=s&nhr=https://mysite.com/blog&ts=1490356409 through ajax but getting 2 different result.
1. one is proper response and after that it will redirect to https://mysite.com/blog?na=m&nm=confirmation&nk=29-ca1a3cea6e. And its working fine.
2.But some times the response giving like that <!DOCTYPE html>
<html><head></head><body><form method=”post” action=”https://mysite.com/blog/” id=”form”><input
type=”hidden” name=”preview” value=”true”><input type=”hidden” name=”nr” value=”widget”><input type
=”hidden” name=”nl[]” value=”0″><input type=”hidden” name=”ne” value=”[email protected]”>
<input type=”hidden” name=”na” value=”s”><input type=”hidden” name=”nhr” value=”https://mysite.com/blog”><input type=”hidden” name=”ts” value=”1490356192″><input type=”hidden” name=”nhr” value=”http
://mysite.com/blog/”><input type=”hidden” name=”ts” value=”1490356336″><noscript><input type
=”submit” value=”Subscribe”></noscript></form><script>document.getElementById(“form”).submit();</script
></body></html>And here the I am getting the http status is 200 but actually it should be 302 (move permanent).
What is the possible reason for that? Can anyone help and save my day??
thank you in advance for your assistance.
- The topic ‘Different ajax response for same parameter Ajax call’ is closed to new replies.