简体   繁体   English

cURL发布到aspx页面时获取内部服务器错误

[英]cURL gets Internal Server Error when posting to aspx page

I have a big problem. 我有一个大问题。 I have some applications made on an unix based system, and I use PHP with cURL to post an XML question to an IIS server with asp.net. 我有一些在基于UNIX的系统上制作的应用程序,并且我将PHP与cURL一起使用,以使用asp.net将XML问题发布到IIS服务器。 Every time I ask the server something I get error: 每次我询问服务器时,都会收到错误消息:

HTTP/1.1 500 Internal Server Error
Date: Tue, 04 May 2010 07:36:08 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 3032

But if I ask same question on another server, almost identically to this one (BOTH configured by me) I get results like it should and the headers: 但是,如果我在另一台服务器上问相同的问题,几乎与此服务器相同(都是我配置的),我会得到应有的结果和标头:

HTTP/1.1 200 OK
Date: Tue, 04 May 2010 07:39:37 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 9169

I tried everything, searched hundreds of forums, but i don't find anything. 我尝试了一切,搜索了数百个论坛,但没有找到任何东西。

In IIS logs I only get: 在IIS日志中,我只会得到:

2010-05-04 07:36:08 W3SVC1657587027 80.xx.xx.xx POST /XML_SERV/XmlAPI.aspx - 80 - 80.xx.xx.xx Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1 500 0 0

any ideas where to look what is going on? 任何想法在哪里看发生了什么?

I forgot to mention! 我忘了提! If I use an XML request software, and ask same question, it works. 如果我使用XML请求软件,并提出相同的问题,那么它将起作用。

Try reducing your asp page to the minimum, with the first try with an empty page. 尝试将ASP页减少到最小,第一次尝试使用空白页。 If this succeed, begin to add the real bits until it fails, so you can narrow the error. 如果成功,则开始添加实数位,直到失败为止,这样就可以缩小错误的范围。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM