mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
update user agent
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@531 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
4b01252c71
commit
d55cdd79c5
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,7 @@ import java.util.zip.GZIPInputStream;
|
|||
*/
|
||||
public final class ParserUtils
|
||||
{
|
||||
private static final String SCRAPE_USER_AGENT = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13";
|
||||
private static final String SCRAPE_USER_AGENT = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.04 (lucid) Firefox/3.6.15";
|
||||
private static final String SCRAPE_ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
|
||||
private static final int SCRAPE_INITIAL_CAPACITY = 4096;
|
||||
private static final int SCRAPE_CONNECT_TIMEOUT = 5000;
|
||||
|
@ -178,6 +178,8 @@ public final class ParserUtils
|
|||
{
|
||||
while (true)
|
||||
{
|
||||
System.out.println(url);
|
||||
|
||||
final HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
|
||||
connection.setDoInput(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue