I am testing a web service for registering my data to web service which uses api keys using headers,I get error while using this code
please help me with this, any answers will be appreciated
URL url = new URL("https://xxxxRequest");
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json;
…
Top comments (0)