Fiddlerを使用
ここ
protected void Page_Load(object sender, EventArgs e)
{
/// store all the posted form variables in an object to use later
response notifyresponse = new response();
notifyresponse.CreditVouchersTransactionId = Request["CreditVouchersTransactionId"];
notifyresponse.MerchantName = GetFormVariableOrNull(Request["MerchantName"]);
notifyresponse.AmountToPay = GetFormVariableOrNull(Request["AmountToPay"]);
notifyresponse.PaymentOKURL = GetFormVariableOrNull(Request["PaymentOKURL"]);
notifyresponse.OrderId = GetFormVariableOrNull(Request["OrderId"]);
notifyresponse.AmountCurrency = GetFormVariableOrNull(Request["AmountCurrency"]);
notifyresponse.PaymentType = GetFormVariableOrNull(Request["AmountType"]);
notifyresponse.PaymentStatus = GetFormVariableOrNull(Request["PaymentStatus"]);
string[] keys = Request.Form.AllKeys;
for (int i = 0; i < keys.Length; i++)
{
Session["amountpay"]=keys[i] ;
}
}
protected string GetFormVariableOrNull(object formvariable)
{
if (formvariable != null)
{
try
{
return formvariable.ToString();
}
catch (Exception ex)
{
/// log the exception in file or DB
Console.WriteLine(ex.Message);/// just for an example
return null;
}
}
else
return null;
}
あり、それはすべてのトラフィックが前後に行くのをお見せし、それらのトランザクション
の間に起こっていただきました!のように、より正確な画像を提供します
https://www.telerik.com/download/fiddler
編集
HTTPメッセージは、2つの部分で構成することができます。最初はヘッダー、もう1つは本文です。
サーバーにGET要求を行う場合、サーバーには本体が含まれません。一方、POST要求が行われます。ヘッダとボディの間で改行があります...私は、私はちょうど今シオマネキをダウンロード
以下のPOSTリクエストを実証してきました。私はそれを使用する方法がわからないどこで私はポストのパラメータ – KRS
確かに、一瞬を見つけるだろう教えてください –
返信いただきありがとうございます。私たちの側からサーバーにPOSTデータを送信するための画像を表示していますか?しかし、私はサーバーから取得しているデータが欲しいですか – KRS