Page 1 of 1

Anyone used the JadeHTTPConnection in 7.0

Posted: Wed Sep 09, 2015 5:46 pm
by helmi
Hi,

Has anyone used the JadeHTTPConnection class?

I want to ping a hidden URL with parameters e.g. http://www.xxxxxxx.co.nz/appupdate/Stoc ... ckQuantity}
and handle the response - probably a integer reply.
If any one that has used it do you have some example commands?

Cheers

Andy.

Re: Anyone used the JadeHTTPConnection in 7.0

Posted: Wed Sep 09, 2015 10:22 pm
by murray
Hi,

Has anyone used the JadeHTTPConnection class?

I want to ping a hidden URL with parameters e.g. http://www.xxxxxxx.co.nz/appupdate/Stoc ... ckQuantity}
and handle the response - probably a integer reply.
If any one that has used it do you have some example commands?

Cheers

Andy.
Sorry, I don't understand what you mean by a "hidden" URL. It looks quite normal to me.
Have You read the Jade documentation for the JadeHTTPConnection class?, e.g. at https://www.jadeworld.com/docs/jade-70/ ... ass|_____0.

It looks like you are doing a HTTP GET, so probably just need to call the getJadeHttpPage() method. This works OK for most simple one-off requests. You need to split up the full URL into its constituent parts for the method parameters (as per documentation), so in your example pServerName would be http://www.xxxxxxx.co.nz ,and pUrlAddress would be the remainder. Try it out in a JadeScript on some known simple website URLs to see how it works. The calls use the underlying MS Windows operating system Http libraries (WinHttp or WinInet - see the class docs) so what you get is normal default MS Windows behaviours.

Re: Anyone used the JadeHTTPConnection in 7.0

Posted: Thu Sep 10, 2015 8:46 am
by helmi
Hi Murray,

I have the getHttpPage method working now.

I was having a couple of problems - firewall not allowing the connection to that specific URL I was using and other issue was the web site the URL points to was not responding.

Thanks.