GithubHelp home page GithubHelp logo

gbif-httputils's Introduction

gbif-httputils

The gbif-httputils shared library provides:

  • Common HTTP utilities built on top of Apache HttpClient
    • downloadIfChanged
    • downloadIfModifiedSince
    • verifyHost

To build the project

mvn clean install

gbif-httputils's People

Contributors

gbif-jenkins avatar mike-podolskiy90 avatar mdoering avatar mattblissett avatar omeyn avatar

Watchers

Tim Robertson avatar  avatar Dave Martin avatar  avatar Chihjen Ko avatar James Cloos avatar Thomas Stjernegaard Jeppesen avatar  avatar Alberto González Talaván avatar J. Kristoffer Legind avatar Federico Mendez avatar  avatar  avatar Marie Grosjean avatar Nikolay Volik avatar Kyle Copas avatar  avatar  avatar  avatar

gbif-httputils's Issues

Unable to download large archive with TLS from one IPT behind Nginx.

The large DWCA from https://ipt.artsdatabanken.no/resource?r=speciesobservationsservice2 cannot be downloaded using gbif-httputils.

org.apache.http.TruncatedChunkException: Truncated chunk (expected size: 16,368; actual size: 11,826)
	at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:197)
	at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:210)
	at org.apache.http.entity.BasicHttpEntity.writeTo(BasicHttpEntity.java:116)
	at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
	at org.apache.http.conn.BasicManagedEntity.writeTo(BasicManagedEntity.java:117)
	at org.gbif.utils.HttpUtil.saveToFile(HttpUtil.java:459)
	at org.gbif.utils.HttpUtil.download(HttpUtil.java:351)
	at org.gbif.utils.HttpUtilTest.testConditionalGet(HttpUtilTest.java:62)
  • If the archive is copied to a resource on ipt.gbif.org, it downloads correctly
  • If using sslsplit as a MITM proxy, the archive downloads correctly

The problem occurs in Java 8, but not in Java 11.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.