0

PHPスクリプトを呼び出すページがあります。MAMP ではすべて正常に動作しますが、サーバーにアップロードすると次のエラーが発生します。

Call Request failed! Status code: 4000
Reason - Caught an HttpRequestValidationException due to some bad characters in the request. Make sure your post request is encoded as xml, preferable as UTF-8 ('Content-Type: text/xml; charset=utf-8'). Exception: A potentially dangerous Request.Form value was detected from the client (<?xml version="..."utf-8"?> <uclassify xmlns="ht...").

誰もそのようなものを見たことがありますか?

ここで自分で確認できますphp や ios などの単語を配置するだけです

4

2 に答える 2

1

content-typeサーバーがヘッダーに基づいて検証しているようです。text/xml送信しているのに対し、が必要なようですapplication/x-www-form-urlencoded(これはのデフォルトです$.ajax)。

通話でコンテンツタイプを明示的に設定してみてくださいtext/xml$.ajax参照

于 2012-08-07T17:41:51.230 に答える
1

に変更charset=utf-8してみてくださいcharset=UTF-8

于 2012-08-07T17:38:13.013 に答える