Thread: Need help with posting with HTTPS using SIMBA

1. Need help with posting with HTTPS using SIMBA

To give a little background with things, I taught myself a lot of the language for SRL by reading through and learning from Clarity's Mud Rune script. There was one snippet of code which I really like that pushed notifications to an app using Pushover. Code snippet (with credit to Clarity of course):

Simba Code:
{PROCEDURE -- notifyMyPhone  Purpose:  Sends notifications to the user's smartphone via Pushover.  Comments: None.}procedure notifyMyPhone(title, message: string);var  o: integer;begin  o := initializeHTTPClient(false);  postHTTPPage(o, 'http://api.pushover.net/1/messages.json', 'token=' + applicationToken + '&user=' + userKey + '&device=' + deviceName + '&title=' + title + '&message=' + message);  freeHTTPClient(o);end;

I read through this particular portion which eventually began to mae sense after some googling because it matched up with:

http://www.w3schools.com/tags/ref_httpmethods.asp
http://en.wikipedia.org/wiki/POST_(H...ting_web_forms
https://pushover.net/api#messages

However, pushover only has a 15 day trial period, so I looked to the popular alternative PushBullet. However, nothing is making any sense to me. Could someone help walk me through how to design a similar method that pushes to PushBullet instead?
https://docs.pushbullet.com/#pushes

I was hoping that after the method is worked up that I could post the code segment to the SRL snippets portion for everyone to use if they wished.

Thanks, and any help is appreciated!

2. If you need to use HTTPS, you will have to use Brandon's ProSocks plugin and library. Simba doesn't seem to be able to handle HTTPS on its own, sadly.

3. I'll try reading through those pages, but it's completely over my head at this moment haha. Oh well, I'll keep at it