Skip to content

Commit

Permalink
Update README and add message
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdietz committed Feb 8, 2015
1 parent e3eab08 commit 092765a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,26 @@ Host: api.my-secure-example-site.com

**Note for Linux Users:** The Python interpreter in Sublime Text on Linux does not have SSL support. To make HTTPS requests, you will need to change the RESTer settings to use [cURL](#curl).

### Host

RESTer will open the connection to the host it finds in the Host header or in the request line. Hoever, you may want to communicate with a server at a specfic IP address. Do do this, use the `@host` setting.

```
GET /my-endpoint
Host: api.my-example-site.com
@host: 127.0.0.1
```

### Port

RESTer will assume ports 80 and 443 for HTTP and HTTPS respectively. If you ofter require a specific custom port, you can set it in the settings.
RESTer will assume ports 80 and 443 for HTTP and HTTPS respectively. If you ofter require a specific custom port, you can set it with the `@port` setting.

```
GET /my-endpoint
Host: api.my-example-site.com
@host: 127.0.0.1
@port: 8888
```

### Default Headers

Expand Down
19 changes: 19 additions & 0 deletions messages/1.7.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
RESTer 1.7.0 Change Log


New Features:

- Host Setting

The @host setting allows communicating with a different host or IP address
than in in the Host header or request line.

Example:

GET /my-endpoint
Host: api.my-example-site.com
@host: 127.0.0.1

- Multiple Headers

Support added for multiple headers with the same name, such as Set-Cookies

0 comments on commit 092765a

Please sign in to comment.