简体   繁体   English

从Java发送的HTTP Post

[英]HTTP Post sent from Java

Worldpay (The payment processor from RBS) sends a HTTP Post to my website once a payment is accepted. 接受付款后,Worldpay(RBS的付款处理器)会将HTTP Post发送到我的网站。 Problem is - the Post isnt getting through and my server responds with one of the following 3 HTTP error's: 问题是-帖子无法通过,并且我的服务器响应以下3个HTTP错误之一:

HTTP 408 (Timeout) HTTP 405 (Not allowed) Invalid status line >NULL< HTTP 408(超时)HTTP 405(不允许)无效的状态行> NULL <

Now when i Post something to the url from my test php script this works fine which leads me to believe the issue could be with the fact that the Post from them is created by Java: 现在,当我从测试PHP脚本向URL发送内容时,此方法工作正常,这使我相信问题可能出在以下事实:来自Java的发布是由它们创建的:

POST /worldpay_success.html HTTP/1.0
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: www.mysite.com
Content-Length: 116
User-Agent: WJHRO/1.0 (WorldPay Java HTTP Request Object)

authAmountString=%26%23163%3B1.99&_SP.charEnc=UTF-8&desc=Test.....etc

Does anyone have any experience with this? 有人对这个有经验么? After speaking to Worldpay they say my server is responding with a 408 Timeout after 0.1 seconds so it doesnt seem to be properly timeing out... Any help apreciated 与Worldpay通话后,他们说我的服务器在0.1秒后响应408超时,因此似乎无法正确超时...任何帮助

Paul 保罗

Check 405 Method Not Allowed and Request Timeout . 检查405方法不允许,请求超时 It shouldn't matter if the POST request is created from Java. POST请求是从Java创建的都没关系。

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

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