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/2017Hide details for [<a class="8037FD7827965D69C12580AA002D4DD0" href="8037FD7827965D69C12580AA002D4DD0?OpenDocument">Scheduled xAScheduled xAgent (Jacob Hansen)
01/16/2017
Show details for [<!-- 20170116100336 --><a class="8C0079892B71B079C12580AA0031C4F9" href="8C0079892B71B079C12580AA0031C4F9?OpeAdgang for anonymous? (Per Henrik Lausten)
01/18/2017
Show details for [<!-- 20170118082010 --><a class="3C8BA67AFFE42375C12580AC00284C71" href="3C8BA67AFFE42375C12580AC00284C71?OpegetResponseCode() efter connect() (Finn L Knudsen)
02/15/2017
Endeligt løst (Jacob Hansen)


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