[Info-vax] API/RTL providing cURL-esque functionality

David Froble davef at tsoft-inc.com
Fri Jan 1 23:12:06 EST 2016


Richard Maher wrote:
> On 1/1/2016 2:06 PM, David Froble wrote:
>> Richard Maher wrote:
>>> Hi,
>>>
>>> Is there an RTL around anywhere that provides cURL like access?
>>>
>>> I'm looking for something with connection-pool management min/max/ttl
>>> as there will be many clients talking to a single destination.
>>>
>>> Should also support http 1.2.
>>>
>>> Merry Christmas & a Happy New Year,
>>> Richard Maher
>>
>> Richard,
>>
>> Instead of mentioning possible solutions, why don't you specify exactly
>> what you want to do?  Your mention of many clients and a single
>> "server?" leads me to assume (shouldn't do that) that you want to write
>> one or more services.
>>
>> Note that a "service" is sort of like a specialized web service.  Got to
>> duck when Jan-Erik reads this.
>>
>> :-)
>>
>> Now, if that is what you intend, I have some samples, and Stephen
>> Hoffman has one of my examples on his web site.  If you want details,
>> just ask.
>>
>> Or maybe you're looking at something else ...
> 
> I thought I was pretty clear on requirements in my reply to Steven's 
> post when I said: -
> 
>  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> 
> If I wanted to use a VMS 3GL (C if you must) how would I go about coding
> for something like : -
> 
> https://simple-push-demo.appspot.com/
> 
> curl --header "Authorization:
> key=AIzaSyBBh4ddPa96rQQNxqiq_qQj7sq1JdsNQUQ" --header
> Content-Type:"application/json" https://android.googleapis.com/gcm/send
> -d
> "{\"registration_ids\":[\"e5RuixsddSA:
> APA91bF0xsDPjHF5M2mDhpRYHQ27YphccjEqN1dZfNT0bQ2HsEn0CDUmXGH_mS4lJfltF-hlhZwvB-fwcfAU3r_Okfc1a_EVLFT2EagXZxvllBTv5e9uCBeDGEofkZ-OxX4JXOhdvf4T\"]}" 
> 
> 
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> 
> I want to PUSH a toaster notification to, possibly sleeping, web apps. 
> Sure it's only Chrome at the moment but Apple and Microsoft are coming 
> out with their centres and RFCs are coming out and I'm punting that 
> *this* is the future of unsolicited (but approved) notifications.
> 
> 
> https://developers.google.com/cloud-messaging/
> 
> or
> 
> https://en.wikipedia.org/wiki/Apple_Push_Notification_Service
> 
> 
> 

Ok, I read both links.

Sure looks to me like a message store and forward.  The middleman is a service 
accepting messages from you.  It then forwards them when the target is available.

So, when sending to the middleman, you're a client.  The google stuff sure 
looked a bit like an HTTP POST.  Maybe something similar.

Regardless, at the bottom of every TCP/IP activity is a socket connection.  So, 
if you can initiate a socket connection, you should be able to work out the details.

Note, one of the links indicated that SSL3 was no longer supported, and TLS 
would be required.  As of now, HPE does not support TLS V1.2, as far as I know. 
  Haven't seen the recent release of SSL.

As mentioned before, I got code that requests the socket connection, sends your 
data, and receives a reply.  Ask if you want it.



More information about the Info-vax mailing list