Skip to content

Commit 80a7ff9

Browse files
committed
Upgrade the 2 Apache HTTP Component libraries used by crawler
to their latest v5 versions and change the imports in the crawler. No code changes required.
1 parent 151e8a0 commit 80a7ff9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -741,15 +741,15 @@
741741
</dependency>
742742

743743
<dependency>
744-
<groupId>org.apache.httpcomponents</groupId>
745-
<artifactId>httpclient</artifactId>
746-
<version>4.5.13</version>
744+
<groupId>org.apache.httpcomponents.client5</groupId>
745+
<artifactId>httpclient5</artifactId>
746+
<version>5.1.3</version>
747747
</dependency>
748748

749749
<dependency>
750-
<groupId>org.apache.httpcomponents</groupId>
751-
<artifactId>httpcore</artifactId>
752-
<version>4.4.15</version>
750+
<groupId>org.apache.httpcomponents.core5</groupId>
751+
<artifactId>httpcore5</artifactId>
752+
<version>5.1.3</version>
753753
</dependency>
754754

755755
<dependency>

src/main/java/org/owasp/benchmark/helpers/Utils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
import javax.servlet.http.HttpServletResponse;
5151
import javax.xml.parsers.DocumentBuilderFactory;
5252
import javax.xml.parsers.ParserConfigurationException;
53-
import org.apache.http.conn.ssl.NoopHostnameVerifier;
54-
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
55-
import org.apache.http.conn.ssl.TrustSelfSignedStrategy;
56-
import org.apache.http.ssl.SSLContexts;
53+
import org.apache.hc.client5.http.ssl.NoopHostnameVerifier;
54+
import org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory;
55+
import org.apache.hc.client5.http.ssl.TrustSelfSignedStrategy;
56+
import org.apache.hc.core5.ssl.SSLContexts;
5757
import org.owasp.benchmark.service.pojo.XMLMessage;
5858
import org.owasp.esapi.ESAPI;
5959

0 commit comments

Comments
 (0)