Re: Capturing HTTP Response
| From: | Jason k Larson | Date: | Sat, 07 Jun 2003 09:56:00 +0000 |
| Subject: | Re: Capturing HTTP Response | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150573@lists.php.net to get a copy of this message | ||
This is all dependent on how you are performing the transaction. Are you using raw sockets to connect or perhaps cURL? The answer lies in that when whatever is making the connection and reading the data returned, the headers will be sent there.
--
Jason k Larson
Ralph wrote:
Hi, I'm currently setting up a form for CC processing. At the moment I am able to send the required flags to authorize the CC transaction, but then I do not know how I go about parsing the returned headers. After processing the transaction the merchant returns either HTTP 200 (ok) along with values or HTTP 400(ERRROR) with a string indicating reason for error. So how would I go about parsing these in my script?