• How to get HTTP Response Header in Java

    This example shows you how to get the Http response header values in Java.

    2019-08-18[Java]

    阅读更多
  • Apache HttpClient Examples

    Apache HttpClient Examples

    This article shows you how to use Apache HttpClient to send HTTP GET/POST request.

    2019-08-18[Java]

    阅读更多
  • The type DefaultHttpClient is deprecated

    Eclipse IDE prompts warning on new DefaultHttpClient, mark this class as deprecated.

    2019-08-17[Java]

    阅读更多
  • Apache HttpClient 4.5 HTTP GET Request Method Example

    This tutorial demonstrates how to use Apache HttpClient 4.5 to make a Http GET request. The Http GET method represents a representation of the specified resource. This could be as simple as getting an HTML page, or Getting resources formatted in JSON, XML or etc. Requests using HTTP GET Request methods should be Idempotent, meaning: these should only retrieve data and should have no other effects.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 HTTP POST Request Method Example

    This tutorial demonstrates how to use Apache HttpClient 4.5 to make a Http POST request. The HTTP POST request method requests that the server accepts the entity enclosed in the request as a new subordinate of the web resource identified by the URI. The posted data can be, but is not limited to, an annotation for existing resources or data formatted JSON, XML or submitted FORM data. The server can use the posted data to update resources in the database, or process this data.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 HTTP PUT Request Method Example

    This tutorial demonstrates how to use Apache HttpClient 4.5 to make a Http PUT request. The HTTP PUT Request Method requests that the server accepts and stores the entity enclosed in the supplied URI. If the URI refers to an already existing resource, it is modified; if the URI does not point to an existing resource, then the server can create the resource with that URI.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 HTTP DELETE Request Method Example

    This tutorial demonstrates how to use Apache HttpClient 4.5 to make a Http DELETE request. The HTTP DELETE Request Method requests deletes the resource specified by the URI.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 How to Get Server Certificates

    The following tutorial demonstrates how to obtain the certificates from the resource server using Apache HttpClient 4.5. Certificates are used to secure the connection between the client and server over HTTPS using SSL/TLS. When you need details about the certificate, for example: when does the certificate expire?, who issued the certificate? or etc. You need to read the server certificate. In the following example we explain in detail how you can do this.

    2019-08-10[Java]

    阅读更多
  • How to Ignore Certificate Errors in Apache HttpClient 4.5

    Typically, a developer will use self-signed certificates on his local machine or in development stage of the project. HttpClient (and web browsers) will not accept untrusted connections, by default. However, we can configure the HttpClient to allow untrusted self-signed certificates.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 HttpRequestRetryHandler Example

    In the following example we show how to create a custom HttpRequestRetryHandler in order to enable a custom exception recovery mechanism. When using this interface, we need to implement the retryRequest method. This allows us to define a custom retry count mechanism and exception recovery mechanism. Take a look at the following tutorial.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient Cache 4.5 Http Caching Example

    HttpClient Cache provides an HTTP/1.1-compliant caching layer to be used with HttpClient–the Java equivalent of a browser cache. The following example uses the CacheConfig of the HttpClient Cache library.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 HTML FORM POST Example

    Many applications need to simulate the process of submitting an HTML form, for instance, in order to log in to a web application or submit input data. HttpClient provides the entity class UrlEncodedFormEntity to facilitate the process. The following tutorial shows how to send HTML Form parameters using apache HttpClient 4.5.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 Redirect Handling Requests Example

    HttpClient handles all types of redirects automatically, except those explicitly prohibited by the HTTP specification as requiring user intervention. See Other (status code 303) redirects on POST and PUT requests are converted to GET requests as required by the HTTP specification. One can use a custom redirect strategy to relaxe restrictions on automatic redirection of POST methods imposed by the HTTP specification. In the following tutorial we’ll us the LaxRedirectStrategy to handle http redirects.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 Custom HTTP Headers Example

    An HTTP message can contain a number of headers describing properties of the message such as content length, content type, authorization and so on. HttpClient provides methods to retrieve, add, remove and enumerate headers. In the following tutorial we’ll show how to add custom HTTP Headers to the HttpClient and Http request method.

    2019-08-10[Java]

    阅读更多
  • Apache HttpClient 4.5 Multipart Upload Request Example

    In this tutorial, we demonstrate how to do a multipart upload http request using Apache HttpClient 4.5.

    2019-08-10[Java]

    阅读更多
共有 15 条记录

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号