0

我的问题是我需要将与从支付网关获得的查询字符串完全相同的查询字符串发布到服务器。我一直在尝试不同的方式

        requestUrl = "Serveraddress.asp?";
        requestUrl += "orderKey=" + HttpUtility.UrlEncode(orderKey);
        requestUrl += "&paymentStatus=" + HttpUtility.UrlEncode(paymentStatus);
        requestUrl += "&paymentAmount=" + HttpUtility.UrlEncode(paymentAmount);
        requestUrl += "&paymentCurerncy=" + HttpUtility.UrlEncode(paymentCurrency);
        requestUrl += "&mac=" + HttpUtility.UrlEncode(mac);
        requestUrl += "&source=" + HttpUtility.UrlEncode(source);

或者

        var queryString = Request.QueryString.ToString();

或者

        var query = HttpUtility.UrlEncode(queryString);

但是他们都没有工作,我怎么能这样做呢?

提前致谢

更新

我已将其更改为

        requestUrl = "Serveraddress.asp?";
        requestUrl += "orderKey=" + orderKey;
        requestUrl += "&paymentStatus=" + paymentStatus;
        requestUrl += "&paymentAmount=" + paymentAmount;
        requestUrl += "&paymentCurerncy=" + paymentCurrency;
        requestUrl += "&mac=" + mac;
        requestUrl += "&source=" + source;

但我仍然收到错误 Microsoft VBScript runtime error '800a0005' Invalid procedure call or argument: "let" /xBooking/SVRWP/booking.inc, line 930

我担心的是 orderKey 参数是 SUPPLIER^AIRWEB^F66257-1241186 的那种,我真的不知道这是否需要编码(视觉上 url 似乎没有任何编码就可以了)。

谢谢!

4

0 回答 0