> entry : connection.getHeaderFields().entrySet())
@@ -373,6 +257,19 @@ public final class ParserUtils
return new String(firstBytes, 0, read).replaceAll("\\p{C}", "");
}
+ private static final Pattern P_REDIRECT_HTTP_EQUIV = Pattern.compile(".
+ */
+
+package de.schildbach.pte.util;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+import java.net.URL;
+
+import org.junit.Test;
+
+/**
+ * @author Andreas Schildbach
+ */
+public class ParserUtilsTest
+{
+ @Test
+ public void vodafoneRedirect() throws Exception
+ {
+ final URL url = ParserUtils
+ .testRedirect("Vodafone CenterSie werden weitergeleitet ...
Sollten Sie nicht weitergeleitet werden, klicken Sie bitte