/    Sign up×
Community /Pin to ProfileBookmark

HTTP POST Not working (408 Error)

Hi,

I am having some problems trying to get a post request to work from a payment provider (WorldPay) to my host server. Basically WorldPay does a callback to a script on my website if/when a transaction is successful. Problem is the post request isn’t getting to my script – we just get a 408 timeout.

This is the request sent from WorldPay below:

[CODE]POST /index.php?route=payment/worldpay/callback
HTTP/1.0
Content-Type: application/x-www-form-urlencoded;
charset=UTF-8
Host: www.mysite.com
Content-Length: 711
User-Agent: WJHRO/1.0 (WorldPay Java HTTP Request Object)
authAmountString=%26%23163%3B3.49&_SP.charEnc=UTF-8&desc=testItem&authMode=A [/CODE]

And this is the response sent back from my hosts server:

[CODE]HTTP/1.1 408 Request Timeout Connection: Close
Pragma: no-cache
cache-control: no-cache
Content-Type: text/html;
charset=iso-8859-1 [/CODE]

I know this is a long shot but can anyone see anything wrong with anything above? To simplify things i replaced the php script with a basic html output which returned a hello world message and we still got a 408 so i’m pretty sure the script works. We have also had this error once or twice:

failed CAUSED BY invalid HTTP status line: >null<

Any help is greatly appreciated

Cheers

Paul

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMar 09.2011 — Is there actually more content than what you showed here? I ask because the HTTP Content-Length indicates 711 bytes, but the actual content shown here is less than 100 bytes, so I was wondering if your host was waiting for more content? If that's not it, then you probably need more of a web server expert than me. ?
Copy linkTweet thisAlerts:
@paulnicauthorMar 09.2011 — Is there actually more content than what you showed here? I ask because the HTTP Content-Length indicates 711 bytes, but the actual content shown here is less than 100 bytes, so I was wondering if your host was waiting for more content? If that's not it, then you probably need more of a web server expert than me. ?[/QUOTE]

yes - trimmed down for this post - thanks anyway
×

Success!

Help @paulnic spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...