問題タブ [invoke-webrequest]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
398 参照

windows - 単純なcurlコマンドをinvoke-webrequestに変換しようとしていますが、機能していません

私は非常に単純なcurlコマンドを持っています.これは私にとってはうまくいきます.

これは動作しません:

次のエラーが発生するため、powershell が何かをマングリングしている必要があります。

curl が powershell にはない本文またはデータを送信するデフォルトの方法はありますか?