Revision 48804
Added by Jochen Schirrwagen over 6 years ago
HttpConnector.java | ||
---|---|---|
39 | 39 |
private int maxNumberOfRetry = 6; |
40 | 40 |
private int defaultDelay = 120; // seconds |
41 | 41 |
private int readTimeOut = 120; // seconds |
42 |
private String userAgent = "Mozilla/5.0 (compatible; OAI-Harvester; +http://www.openaire.eu)";
|
|
42 |
private String userAgent = "Mozilla/5.0 (compatible; OAI; +http://www.openaire.eu)"; |
|
43 | 43 |
|
44 | 44 |
public HttpConnector(){ |
45 | 45 |
CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL)); |
Also available in: Unified diff
update user-agent to "Mozilla/5.0 (compatible; OAI; +http://www.openaire.eu)", the word "Harvester" caused 403 status code in one case