'ssl_result_message'
これから取得する方法string
(curl
応答):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- process-transaction-response -->
<html>
<head>
<meta content=
"1;url=http://www.xxx.com/perfect-process-status.php?ssl_email=&ssl_status=TEST+MODE&ssl_cvv2_response=P&ssl_ship_to_phone=&ssl_last_name=&ssl_ship_to_country=&ssl_ship_to_state=&ssl_eci_ind=&ssl_account_balance=0.00&ssl_ship_to_zip=&ssl_get_token=&ssl_token=&ssl_result_message=APPROVED&ssl_token_response=&ssl_country=&ssl_city=&ssl_phone=&ssl_invoice_number=1876&ssl_ship_to_address2=&ssl_ship_to_address1=&ssl_txn_id=00000000-0000-0000-0000-00000000000&ssl_result=0&ssl_customer_code=14&ssl_ship_to_company=&ssl_avs_response=X&ssl_approval_code=123456&ssl_ship_to_last_name=&ssl_avs_zip=&ssl_exp_date=0415&ssl_ship_to_city=&ssl_ship_to_first_name=&ssl_avs_address=&ssl_address2=&ssl_first_name=&ssl_amount=30.00&ssl_state=&ssl_card_number=37**********0005&ssl_txn_time=10%2F29%2F2013+02%3A28%3A11+AM"
http-equiv="refresh">
<style type="text/css">
BODY, TD, INPUT, SELECT, TEXTAREA, BUTTON, .normal {font-family:arial,helvetica,sans-serif; font-size:10pt; font-weight:normal; } .small {font-size: 10pt} .medium {font-size: 14pt} .large {font-size: 18pt}
</style>
<title></title>
</head>
<body>
<form action="#" id="frmMenu" method="post" name="frmMenu">
<input name="dispatchMethod" type="hidden"> <input name=
"permissionDesc" type="hidden"> <input name="menuAction" type="hidden">
<input name="thClientID" type="hidden" value="">
</form>
</body>
</html>
これは次からの応答です。
print_r(htmlspecialchars($post_response));