HTTPRequest and HTTP_SSL

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Trautmann
Newbie
Posts: 9
Joined: Fri Jun 12, 2009 6:35 pm

HTTPRequest and HTTP_SSL

Post by Trautmann » Tue Aug 25, 2009 9:52 am

Hi,

Posting this here because I am sure its just me being a numpty!

I am trying to run a couple of queries on an online database (Zoho).

First Query is to generate a ticket, this is a https/ request so I set HTTP_SSL to 1 and run the query.

Let>HTTP_SSL=1
Let>PostData=LOGIN_ID=%Myname%&PASSWORD=%passw%&FROM_AGENT=true&servicename=ZohoCreator
HTTPRequest>https://accounts.zoho.com/login,,POST,PostData,strHTML

This works fine, I get my ticket back

Second request is a http/ link.

ReadFile>C:\logs\infile.txt,InFile
Let>Query=XMLString=%InFile%
Let>Uri=http://creator.zoho.com/%mylogin%/api/x ... =%MyTicket%
HTTPRequest>Uri,,POST,Query,strHTML

strHTML now contains:

-1


Just wondering if I have to reset HTTP_SSL and if so, to what?

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Aug 25, 2009 10:42 am

Yes, you'll need to set HTTP_SSL back to 0:

Let>HTTP_SSL=0

Otherwise all subsequent HTTPRequests will use SSL.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts