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

David Froble davef at tsoft-inc.com
Fri Jan 1 23:02:14 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\"]}" 
> 
> 
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Ok, I don't understand the above.

> 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.

So, you know the URLs or IP addresses that you want to contact?  Sounds more 
like your app will be the client.

Now I'm assuming, and that's always dangerous, that those you want to contact 
will accept inbound TCP/IP connection requests.  If so, then you would request a 
connection, if successful send your data in whatever operation is appropriate, 
POST, GET, OTHER, get back whatever reply is appropriate, and close the connection.

> 
> https://developers.google.com/cloud-messaging/
> 
> or
> 
> https://en.wikipedia.org/wiki/Apple_Push_Notification_Service
> 
> 
> 

I'm too lazy to read the links you've provided.  However, if what I described is 
what you want to do, I can provide example code.

Actually, maybe I should read them ....



More information about the Info-vax mailing list