sync-request icon indicating copy to clipboard operation
sync-request copied to clipboard

Make synchronous web requests with cross platform support.

Results 35 sync-request issues
Sort by recently updated
recently updated
newest added

``` find port exited with code 1. ```

![image](https://user-images.githubusercontent.com/48094421/153234392-3d8e8729-cf9a-4d8c-9b07-827a87cb96c9.png) 之前都好用,突然遇到这个错误 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) ```

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