LoginSignup
0
2

More than 5 years have passed since last update.

Electronでrequestモジュールを使って、プロキシ経由でpostする

Posted at

こんな感じ。
認証が必要なプロキシでも大丈夫。

const request = require('request');

let request_with_proxy = request.defaults({proxy: 'http://user:password@proxy.example.jp:80'});

request_with_proxt.post('http://service.com/upload', {form:{key:'value'}});

必要なもの

requestモジュール
https://github.com/request/request

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2