sync-request
sync-request copied to clipboard
Make synchronous web requests with cross platform support.
``` find port exited with code 1. ```
 之前都好用,突然遇到这个错误 linux服务器好用,本地不行
Request like: `var request = require('sync-request'); var header = { "Content-Type": "application/json", "Cache-Control": "no-cache" }; deleteRequest = [ { "Name": "Title", "type": "PRODUCT", "id" : "123" } ]; var response...
Running tests using sync-request and Jest has Jest detecting a possibly leaked handle. ``` PROCESSWRAP at start (node_modules/sync-rpc/lib/index.js:33:13) at sendMessage (node_modules/sync-rpc/lib/index.js:133:17) at createClient (node_modules/sync-rpc/lib/index.js:173:27) at Object. (node_modules/sync-request/lib/index.js:16:14) ```
edit: nvm
Its not working even after increasing timeout to unlimited time. Code: var response = request('POST', url, { headers : {'content-type':'application/xml'}, body: payload, timeout : 200000 }); Note: The request will...
I'm writing a utility which validates response headers on an array of URLs. So I don't need to download the resource, just the headers but when issuing a HEAD request...
Run the code multiple times, the program will occasionally get stuck in require(). **Operating environment:** node version: v10.16.3 node-worker-threads-pool: 1.4.3 sync-request: 6.1.0 ___ ````js 'use strict'; const { StaticPool }...
Looks like we dont have option to add bearer token authorisation option in sync-request
Consider the following test program ``` #!/usr/bin/node const request = require("sync-request"); function getDataFromUrl(src) { const res = request("GET", src, { headers: { "User-Agent": "sync-request/6.1.0" }}); return res.getBody("utf8"); }; result =...