Re: http.jsã By: Kirkman to All on Fri Feb 28 2014 12:52 pmãã > Does http.js allow for customization of the headers sent in a request?ããAbsolutely, you need to create the request, modify it, then send it like so:ããreq = new HTTPRequest();ãreq.SetupGet("
http://example.com");ãreq.request_headers.push("X-Magic: More magic");ãreq.SendRequest();ãreq.ReadResponse();ãresponse = req.body;ããHave a look at the Get() method in http.js for how to do auth and such.ãã---ã
http://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã