kid_epicurus Posted March 26, 2014 Share Posted March 26, 2014 I have an HTML page that makes an HttpRequest to an ASP page that I currently have setup to simply return true. If the data is simple text (letter-body) it passes fine: Request Method: POSTStatus Code: 200 OKRequest HeadersAccept:*/*Accept-Encoding:gzip,deflate,sdchAccept-Language:en-US,en;q=0.8Connection:keep-aliveContent-Length:181Content-Type:application/x-www-form-urlencodedUser-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36Form Dataletter-body:Testing some plain text. But as soon as I add any HTML to the letter-body value it fails: Request Method: POSTStatus Code: 500 Internal Server ErrorRequest HeadersAccept:*/*Accept-Encoding:gzip,deflate,sdchAccept-Language:en-US,en;q=0.8Connection:keep-aliveContent-Length:196Content-Type:application/x-www-form-urlencodedUser-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36Form Dataletter-body:Testing some <b>HTML</b>. I'm also encoding the letter-body string with encodeURIComponent() though it's showing it as decoded when I look at the headers. Any ideas? Thanks! Link to comment Share on other sites More sharing options...
kid_epicurus Posted March 26, 2014 Author Share Posted March 26, 2014 The ASP server wasn't allowing code to be passed until validateRequest was set to false on the server. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now