How to use the urllib.curl function in urllib

To help you get started, we’ve selected a few urllib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / urllib / urllib-tests.ts View on Github external
import * as urllib from "urllib";

urllib.curl('https://example.test.com', {
  method: "GET",
  data: {
    test: 'test',
  }
});

urllib

Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, timeout and more. Base undici API.

MIT
Latest version published 28 days ago

Package Health Score

86 / 100
Full package analysis