Auto-Responder




Try HTTP Debugger Pro FREE!

Download HTTP Debugger



Auto-responder allows to simulate a server response with a custom HTTP header and content. This may be useful for a quick test of your web website with a new version of used JavaScript library, or an updated version of a CSS file without changing the server code, or simulate a third-party API reply for your Internet application.

Note: if you need to modify your server response by adding/removing some header parameters or by making small changes in content, then consider using the HTTP Modifier instead of Auto-responder.

You can create as many auto-responders, as you need.

Application: type or select an application name from the list that you want to test. If no application name is provided, the rule will work for all applications. It is recommended to provide an application name.

Protocol: select the protocol from the list.

Match Rules: provide regexp rules to match a request to reply. Regexp rules are case insensitive. If you provide more then one regexp rule, all of those must match.

Regexp Samples:

Match HTTP Method and URL Part:
^GET\s+/index\.html\s+HTTP/
Match Host Name:
Host:.*httpdebugger\.com
Response Header: the HTTP response header that will be send back to your browser or application. The header must be a valid HTTP header. You may provide any HTTP request header, with any status code, user agent string and cookies, etc.

Response Content: the HTTP response content that will be send to browser or your application. HTTP Debugger will automatically calculate the Content-Length for your content, but you need to provide a valid Content-Type for it.

Response File: you can tell HTTP Debugger to respond with a file from your local disk. HTTP Debugger will automatically calculate the Content-Length for that file, but you need to provide a valid Content-Type for it.

Response Header Samples:

OK with Some Content:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 46
Connection: close
302 Redirect To HTTP Debugger Website:
HTTP/1.1 302 Found
Location: http://www.httpdebugger.com
Connection: close
404 Page Not Found:
HTTP/1.1 404 Page Not Found
Content-Type: text/html
Content-Length: 0
Connection: close
500 Internal Server Error:
HTTP/1.1 500 Internal Server Error
Content-Type: text/html
Content-Length: 0
Connection: close

You can create an Auto-responder rule for a particular HTTP request from grid's context menu.

Note: to improve the performance, it is recommended to disable the Auto-responder, if it is not used.

Important: browsers tend to cache Internet connections, therefore it maybe required to restart a browser for changes to take effect.

« Back to Manual