Total Pageviews

Sunday 1 September 2019

翻墙工具-MockServer

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and… 

Build status  GitHub license  GitHub stars

Documentation

For usage guide please see: www.mock-server.com
For chat room: Gitter

Versions

Maven Central mockserver

Maven Central contains the following MockServer artifacts:
In addition MockServer SNAPSHOT artifacts can also be found on Sonatype.

Node Module & Grunt Plugin

NPM Registry contains the following module:

Docker Hub

Docker Hub contains the following artifacts:

Helm Chart

MockServer Clients

FROM github.com/jamesdbloom/mockserver,
https://github.com/mock-server/mockserver
-------------------

What is MockServer Proxy

MockServer Proxy can be used for transparently recording all requests sent by a system (i.e. an application or set of applications).
MockServer Proxy can:
  • proxy all requests using any of the following proxying methods:
    • Port Forwarding
    • Web Proxying (i.e. HTTP proxy)
    • HTTPS Tunneling Proxying (using HTTP CONNECT)
    • SOCKS Proxying (i.e. dynamic port forwarding)
  • verify requests have been sent (i.e. in a test assertion)
  • record requests and responses to analyse how a system behaves
The MockServer Proxy provides the following features:
  • Port Forwarding
    • all requests for a specific local port are forwarded to a different (local or remote) port and hostname for the system being proxied
    • to proxy requests the HTTP client should use the hostname and port of the MockServer Proxy instead of the system being proxied
  • Web Proxying (i.e. HTTP proxy)
  • Secure Web Proxying (i.e. HTTPS tunneling proxying)
    • requests are forwarded using a CONNECT request that setups an HTTP tunnel
    • an SSL certificate is auto-generated allowing encrypted HTTPS traffic to be recorded transparently
    • to proxy requests the HTTP client should be configured to use an HTTP Proxy
  • SOCKS Proxying (i.e. dynamic port forwarding)
    • requests are forwarded using a SOCK CONNECT CMD request that established a socket tunnel
    • if the traffic is encrypted an SSL certificate is auto-generated allowing SSL traffic to be recorded transparently
    • to proxy requests the operating system (or JVM) should be configured to use an HTTP Proxy
  • SSL & Certificates
  • Port Unification
    • to simplify configuration all protocols (i.e. HTTP, HTTPS / SSL, SOCKS, etc) are supported on the same port
    • the protocol is dynamically detected by both MockServer and MockServer Proxy
FROM mock-server.com