Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bbdesign

Pages: [1]
1
REST / HTTP / HTTPS / Re: How to use HttpRequest to send XML data
« on: January 03, 2018, 06:51:06 PM »
That worked perfectly, thanks again!

2
REST / HTTP / HTTPS / Re: How to use HttpRequest to send XML data
« on: January 03, 2018, 06:47:25 PM »
That seems to be what I was looking for, I couldn't find that example for some reason. I'll give it a try. Thanks!

3
REST / HTTP / HTTPS / How to use HttpRequest to send XML data
« on: January 03, 2018, 04:30:09 PM »
I normally use HttpRequest to POST parameters to a URL and receive the results. I would like to use the component to POST XML data instead, and I'm not sure of the syntax.

Here is what I normally do (this is Classic ASP):

<%

set inet=server.CreateObject("Chilkat_9_5_0.Http")
inet.UnlockComponent "xxx"
set inetRequest=server.CreateObject("Chilkat_9_5_0.HttpRequest")
inetRequest.AddParam "parameter1","value1"
set inetResponse=inet.PostUrlEncoded("https://secure2.authorize.net/gateway/transact.dll", inetRequest)
response.write(inetResponse.BodyStr)

%>

Here is what I started doing with XML instead:

<%

xml="[xml data here]"

set inet=server.CreateObject("Chilkat_9_5_0.Http")
inet.UnlockComponent "xxx"
set inetRequest=server.CreateObject("Chilkat_9_5_0.HttpRequest")
inetRequest.HttpVerb="POST"
inetRequest.ContentType="text/xml"

%>

...but that is where I get stuck, because I'm not sure what to use instead of PostUrlEncoded. Can someone point me in the right direction? Thank you!

Pages: [1]