Re: http post call using http.js
By: echicken to Dmxrob on Fri Feb 15 2019 08:52 am
Would be something like:
require('http.js', 'HTTPRequest');
const hr = new HTTPRequest();
const response = hr.Post('http://some-url', 'some post data');
Yes, that much I have already figured out by looking at http.js.
Unfortunately, I have not determined if "Some post data" will do URL encoding or if I need to do it first. Is it a string or can it take arrays or data sets? Things of that nature.
I'll tinker with it more today and probably figure it out. Just thought it might be documented somewhere what the variable types were, etc.
Rob
dmxrob þ BBSing from St. Louis, Missouri since 1988
---
þ Synchronet þ Gateway to the West - St. Louis, Missouri - bbs.dmxrob.net