Sign in to participate
Svar til: getResponseCode() efter connect()
Topic:Redirect ved https ?
Oprettet:01/19/2017
Author:Jörg Igen Asmussen

 

https://en.wikipedia.org/wiki/HTTP_302  

Når jeg ændrer koden til  

             final String targetURL = "http://mail.convergens.dk";

            System.out.println("ResponseCode: " + httpUrlConnection.getResponseCode());

            System.out.println("Location: " + httpUrlConnection.getHeaderField("Location"));

 får jeg

  1. DEBUG - scheduled rund starting
  2. ResponseCode: 302
  3. Location: https://mail.convergens.dk/
  4. DEBUG - scheduled rund ending

 

 



Diskussions forløb

01/16/2017Show details for [<a class="8037FD7827965D69C12580AA002D4DD0" href="8037FD7827965D69C12580AA002D4DD0?OpenDocument">Scheduled xAScheduled xAgent (Jacob Hansen)


Notesnet.dk - Rustenborgvej 7a - 2800 Kgs. Lyngby - info at notesnet.dk