deleted non UTF-8 characters
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/DataMiner@117478 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7e52bd916b
commit
abcfcba01b
|
@ -228,7 +228,7 @@ public class GetCapabilitiesChecker {
|
|||
|
||||
public static String readPageNoHttpClient(URL url) throws Exception{
|
||||
URLConnection conn = url.openConnection();
|
||||
//pretend you're a browser (make my request from Java more “browsery-like”.)
|
||||
//pretend you're a browser (make my request from Java more browsery-like.)
|
||||
conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11");
|
||||
conn.setDoOutput(true);
|
||||
conn.setAllowUserInteraction(true);
|
||||
|
@ -255,7 +255,7 @@ public class GetCapabilitiesChecker {
|
|||
|
||||
public static String readPageHTTPHeader(URL url,String token) throws Exception{
|
||||
URLConnection conn = url.openConnection();
|
||||
//pretend you're a browser (make my request from Java more “browsery-like”.)
|
||||
//pretend you're a browser (make my request from Java more browsery-like.)
|
||||
conn.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11");
|
||||
conn.setDoOutput(true);
|
||||
conn.setAllowUserInteraction(true);
|
||||
|
|
Loading…
Reference in New Issue