With options like
var options = { method: 'GET', host: "http://www.upwork.com", path: "/ab/feed/jobs/rss", protocol:"https" };
I'm not setting port. And host also without "http" part. Response look follow:
httpCRs { "headers": { "Date": "Tue, 26 Dec 2017 14:45:42 GMT", "Transfer-Encoding": "chunked", "Connection": "close", "Cache-Control": "max-age=3600", "Expires": "Tue, 26 Dec 2017 15:45:42 GMT", "Location": "https://www.upwork.com/ab/feed/jobs/rss", "X-Content-Type-Options": "nosniff", "Server": "cloudflare-nginx", "CF-RAY": "3d34d34e07fe6409-FRA" }, "httpVersion": "1.1", "statusCode": "301", "statusMessage": "Moved Permanently" } 0 CLOSE
@tempos started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
With options like
I'm not setting port. And host also without "http" part. Response look follow: