really weird why I need con.getResponseCode().  But apparently I do