简体   繁体   English

Apache Http服务器POST 400

[英]Apache Http Server POST 400

that's my first question here. 这是我的第一个问题。 After long research, I decided to ask for help... 经过长时间的研究,我决定寻求帮助...

So first I'll explain my scenario. 首先,我将解释我的情况。 I have some SOAP web services here. 我这里有一些SOAP Web服务。 They're consumed by an .Net website. 它们由.Net网站使用。 The .Net framework used is in version 4.0. 使用的.Net框架在版本4.0中。

So my web services are configured to accept HTTP/1.0 protocol, due to .Net limitations. 因此,由于.Net的限制,我的Web服务被配置为接受HTTP / 1.0协议。 In spite of that, everything works fine if I access the service directly to Jboss AS(4.2.2 GA). 尽管如此,如果我直接访问Jboss AS(4.2.2 GA),则一切正常。

But, I have to make it work with Apache web server as the receptor of the request. 但是,我必须使其与Apache Web服务器一起作为请求的接受者。 Apache do a inverse proxy redirection to my service, so the site send requests to port 8080 (that Apache is listening) and send it to jboss that is expecting the request at port 18080. Apache对我的服务执行了反向代理重定向,因此该站点将请求发送到端口8080(Apache正在侦听),然后将其发送到期望在18080端口请求的jboss。

In many tests, I confirmed that almost every service worked almost fine, sometimes they have the same failure. 在许多测试中,我确认几乎每个服务都可以正常工作,有时它们也有相同的故障。 But one in particular don't work anyway, the request stopped at Apache with status 400 and empty value (the - after the 400) like that: 但尤其是其中一个始终无法正常工作,该请求在Apache处停止,状态为400,空值(在-400之后为-),如下所示:

POST /xxxx/xxxx/xxxxx/MyService HTTP/1.1" 400 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; MS Web Service Client Protocol 4.0.30319.296) POST / xxxx / xxxx / xxxxx / MyService HTTP / 1.1“ 400-”-“” Mozilla / 4.0(兼容; MSIE 6.0; MS Web服务客户端协议4.0.30319.296)

The other requests that are processed have this value filled. 处理的其他请求将填充此值。 I guess is the response size. 我猜是响应大小。

Please consider my regards. 请考虑我的问候。 thanks 谢谢

After great efforts at my company we discovered using an Sniffer(Wireshark) that we had two problems that let us to had the situation described in this problem. 经过我公司的巨大努力,我们发现使用Sniffer(Wireshark)遇到了两个问题,使我们不得不对此问题进行描述。

First problem solved: .Net platform is configured to send by default an empty request. 解决的第一个问题: .Net平台默认配置为发送空请求。 The first attempt failed so .Net was forced to automatically send a second request with authentication. 第一次尝试失败,因此.Net被迫自动发送带有身份验证的第二个请求。 So i figured out 2 requests before the Jboss response formed an http 400 error. 因此,在Jboss响应形成http 400错误之前,我找出了2个请求。

Second Problem solved: After the other side solved thise previous problem configuring .Net properly, we tested again and the results were conclusive that no more requests was hitting Apache Http Server. 解决了第二个问题: 在另一端解决了先前配置.Net的先前问题之后,我们再次进行了测试,结果是没有更多的请求到达Apache Http Server。 - So there was a strong signal that we had something blocking this specific service. -因此,有一个强烈的信号表明我们有某些东西阻止了这项特定服务。 With the rocks in my hand, infrastructure people started to move their asses and somehow solved the problem. 有了我手中的石头,基础设施人员开始移动驴子,并以某种方式解决了问题。 Mine frustration in the end is that they didn't said nothing about the possible correction. 最终,我的挫败感是他们没有对可能的纠正说任何话。 So "suddenly" the communication was restored.. 因此“突然”恢复了通讯。

So after all we made it! 所以毕竟我们做到了! but with a bitter taste of defeat. 但带着失败的痛苦。 Thank you all that supported me in this problem. 谢谢所有支持我解决这个问题的人。 []s []中

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

相关问题 Web服务 - C#客户端和Apache服务器基本身份验证 - 错误HTTP 400错误请求 - Web Service - C# Client and Apache Server Basic Authentication - Error HTTP 400 Bad Request VS2010开发服务器的Axis2 HTTP 400错误 - Axis2 HTTP 400 error with VS2010 development server Android向服务器发送HTTP POST请求 - Android sending HTTP POST request to the server POST http:// localhost:51348 / TestService.svc / SendCredentials 400(错误请求) - POST http://localhost:51348/TestService.svc/SendCredentials 400 (Bad Request) Apache HTTP Client Post似乎可以工作,但未收到变量 - Apache HTTP Client Post appears to work but variable not received HTTP / 1.1 400错误请求400 - HTTP/1.1 400 Bad Request 400 apache http client org.apache.http.NoHttpResponseException:目标服务器无法响应 - apache http client org.apache.http.NoHttpResponseException: The target server failed to respond 是否可以缓存服务器对服务器HTTP POST请求的响应? - Is it possible to cache the response of a Server to Server HTTP POST request? 在服务器端从HTTP / 1.0升级到HTTP / 1.1,> 4kb的SOAP消息抛出“ 400:Bad Request”错误 - Upgrade from HTTP/1.0 to HTTP/1.1 at server side, SOAP messages >4kb throws '400: Bad Request' Error HTTP响应码:URL为400? - HTTP response code: 400 for URL?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM