Omnis Studio and Python
Grzegorz (Greg) Pasternak
grzegorz at niagara.com
Tue Dec 23 09:24:06 EST 2014
Serban;
Thanks a lot for this code, I will do some testing later on to see if passing data in URL to Omnis using ultra thin HTTP is going to work.
I will let you know either way.
Greg
On Dec 23, 2014, at 6:00 AM, serban21 at gmail.com wrote:
>
>
> You don't have to put the URL parameters in it, you can also put them like
> this:
>
> import requests
> import sys
>
> params = {
> 'OmnisLibrary': 'MyHttp',
> 'OmnisClass': 'rtHttpDoTest',
> 'data': sys.argv[1]
> }
> if USERNAME is None:
> auth = None
> else:
> auth = (USERNAME, PASSWORD)
>
> resp = requests.post(url=URL, params=params, auth=auth)
> print resp.text
>
>
More information about the omnisdev-en
mailing list