如何将数据发布order.asp到第三方网址?
我在表单标签中有所有参数.
在提交第三方希望我添加两个值作为标题.第三方代码如下
curl https://www.instamojo.com/api/1.1/payment-requests/ \
--header "X-Api-Key: [API_KEY]" \
--header "X-Auth-Token: [AUTH_TOKEN]" \
--data
"allow_repeated_payments=False&amount=2500&buyer_name=John+Doe&purpose=FIFA+16&redirect_url=http%3A%2F%2Fwww.example.com%2Fredirect%2F&phone=9999999999&send_email=True&webhook=http%3A%2F%2Fwww.example.com%2Fwebhook%2F&send_sms=True&email=foo%40example.com"
Run Code Online (Sandbox Code Playgroud)
我正在使用asp经典.我可以用response.AddHeader name,value传递两个值X-Api-Key和X-Auth-Token?
如果不可能,那么如何在asp经典中使用curl?
当我点击链接打开子窗口时,父页面会自动刷新.我怎么能阻止它?
打开子窗口时不应刷新父页面.这该怎么做?请帮我.
我的代码如下:
<html>
<head>
<title>login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var popup;
function ShowPopup(url) {
if(popup)
{
popup.close();
}
popup = window.open(url, "self", "toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=0,width=300,height=350,left = 0,top = 0");
popup.focus();
}
</script>
</head>
<body>
<a href="" onclick="ShowPopup('popup_login.asp')" style="color: #1686CC;">Sign In / Register</a>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)