Big Boss, I would like to ask why I use java to initiate a request through tls, set a proxy, copy Authorization and cookie through the page, and set the same as the header of the page initiating a request. Why do I always return 403? Can you teach me? I want to write a java version
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 403 for URL: https://chat.openai.com/backend-api/conversation
at demo.chatgpt.ChatGptTest.main(ChatGptTest.java:103)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://chat.openai.com/backend-api/conversation
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at demo.chatgpt.ChatGptTest.main(ChatGptTest.java:93)
Big Boss, I would like to ask why I use java to initiate a request through tls, set a proxy, copy Authorization and cookie through the page, and set the same as the header of the page initiating a request. Why do I always return 403? Can you teach me? I want to write a java version