How to use HTTPGet with atoms?

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Yocal
GamingTools Subscriber
Posts: 20
Joined: Mon Jan 17, 2005 11:25 am

How to use HTTPGet with atoms?

Post by Yocal » Wed Apr 29, 2009 10:05 am

Hi there,

Im a little confused about using an atom with HTTPGet -atom <atom> URL:

- http://lavishsoft.com/wiki/index.php/IS ... _(Command)

This is the description:
Retrieve a URL, execute an atom with the result in a binary Context object
I am not quite sure how to declare the atom. I tried with a binary, but that didnt quite work. So Valerian helped me trying to figure out how it should be declared and this is how long we got:

Code: Select all

atom&#40;global&#41; CheckResult&#40; string TheUrlThatWasCalled , string SomeBooleanParameter &#41;
But i cannot find the content of the request anywhere. The first parameter returns the URL i called, and the second is a boolean value. I guess it if the page return a 200-header. If i add more parameters, they're just null.

What i actually need doesnt seem to be there? My page returns "APPROVED" og "DECLINED" and i need to check on that value. If i remove my atom:

Code: Select all

HTTPGet <URL>
...it returns the result perfectly - to the consol! :)

But, yeah - i'd like it to go into my atom - im just not sure how to declare it.

Any ideas? :)

Post Reply