How can I post data from order.asp
to 3rd party url?
I have all parameters in form tag.
On submission 3rd party want me to add two values as header. 3rd party code is as below
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"
I am using asp classic. Can I use response.AddHeader name,value
to pass both values X-Api-Key
and X-Auth-Token
?
If not possible, then how to use curl in asp classic?
Question&Answers:os