These are the response headers I get when I try to fetch the headers
But when I try to get all headers through my code it does not show the location header.
Here is my code
try {
URL obj = new URL("https://app.armorcode.com/oauth2/authorization/okta-apptesting?email=manan.girdhar@armorcode.io");
URLConnection conn = obj.openConnection();
Map<String, List<String>> map = conn.getHeaderFields();
System.out.println("Printing Response Header...\n");
for (Map.Entry<String, List<String>> entry : map.entrySet()) {
System.out.println("Key : " + entry.getKey()
+ " ,Value : " + entry.getValue());
}
} catch (IOException e) {
e.printStackTrace();
}
Can someone please tell me why the location header is missing
