問題タブ [webex]
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.
java - java HttpsURLConnection setRequestProperty は PrintWriter で同等
これは単なる演習です。このコードに相当するものがあるかどうか疑問に思っています:
次のようなものを作ることができると思いました:
しかし、サーバーから認証エラー メッセージが返され、HTTP 応答コードが返されました: URL の 401: https://api.ciscospark.com/v1/rooms 401 認証資格情報が見つからないか、正しくありません。printwriter を使用して動作させることはできますか? そうでない場合、なぜですか?ありがとう