I've downloaded martian and installed it, and ran it like this:
```
$GOPATH/bin/proxy -v 5
2015/12/19 15:38:13 martian: proxy started on: [::]:8080
```
```
curl -x localhost:8080 \
-X POST \
-H "Content-Type: application/json" \
-d @modifier.json \
```
```
{
"header.Modifier": {
"scope": ["response"],
"name": "Test-Header",
"value": "true"
}
}
```
```
{
"url.Filter": {
"scope": ["request", "response"],
"modifier" : {
"status.Verifier": {
"scope" : ["response"],
"statusCode": 200
}
}
}
}
```
The curl command output seemed to indicate that martian received the configurations:
```
* Hostname was NOT found in DNS cache
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> User-Agent: curl/7.37.1
> Host: martian.proxy
> Accept: */*
> Proxy-Connection: Keep-Alive
> Content-Type: application/json
> Content-Length: 184
>
* upload completely sent off: 184 out of 184 bytes
< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
<
```
Martian logs also seemed to indicate that the configuration was received, but I'm confused about the "EOF" message:
```
2015/12/19 16:09:26 DEBUG: martian: waiting for request: [::1]:58932
2015/12/19 16:09:26 DEBUG: martian: connection closed prematurely: EOF
2015/12/19 16:09:26 DEBUG: martian: closing connection: [::1]:58932
```
I wanted to check that the verification modifier I sent was present, so I did
```
curl: (6) Could not resolve host: martian.proxy
```
How do I set up the host martian.proxy? I tried hitting localhost:8080/verify instead, but got this:
```
curl "localhost:8080/verify" -v
* Hostname was NOT found in DNS cache
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> GET /verify HTTP/1.1
> User-Agent: curl/7.37.1
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< Warning: 199 "martian" "via: detected request loop, header contains martian" "Sat, 19 Dec 2015 16:28:05 GMT"
< Content-Length: 0
<
* Connection #0 to host localhost left intact
```
Is there a setup step I might be missing?
Vasanth