Application Guide
MSNTN01: Controlling the MSNSwitch
Page 11
EXAMPLE: Show Cookie
curl --url "http://192.168.0.42/goform/login" --http1.1 --verbose --cookie- --header "Accept-Encoding: gzip,
deflate" --header "Accept: */*" --header "Content-Type: application/x-www-form-urlencoded" --data
"user=admin&password=05FE36"
OUTPUT:
* Trying 192.168.0.42...
* TCP_NODELAY set
* Connected to 192.168.0.42 (192.168.0.42) port 80 (#0)
> POST /goform/login HTTP/1.1
> Host: 192.168.0.42
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 26
>
* upload completely sent off: 26 out of 26 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 Data follows
< Server: GoAhead-Webs
< Date: Wed Dec 9 05:15:42 2020
* Added cookie WQKJhuEcnAVA3t7WE+ug6A="2ZZeUIu0LxPi80nEd" for domain 192.168.0.42, path /,
expire 0
< Set-Cookie: WQKJhuEcnAVA3t7WE+ug6A=2ZZeUIu0LxPi80nEd; HttpOnly; Path=/
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Type: text/html
< Location: /index.asp
<
<html><head>
<meta http-equiv=Content-Type content='text/html; charset=utf-8'>
<script language='JavaScript'>
window.top.location.href='/index.asp';
</script>
</body></html>
* Closing connection 0