CLIENT
_AUTO_COOKIE on

_REQ google.com SSL:443
_DEBUG user profile without auth
__GET /sk/ucet/prihlasenie/ HTTP/1.1
__Host: google.com
__Cookie: AUTO
__Connection: keep-alive
__
_EXPECT . "302 Found"
_EXPECT header "Location: /sk/ucet/prihlasenie"
_WAIT
_CLOSE

_REQ google.com SSL:443
_DEBUG login page to get cookie
__GET /sk/ucet/prihlasenie/ HTTP/1.1
__Host: google.com
__Cookie: AUTO
__
_EXPECT . "200 OK"
_MATCH header "csrftoken=([^;]+)" csrf
_WAIT
_CLOSE

_REQ google.com SSL:443
_DEBUG login page
__POST /sk/ucet/prihlasenie/ HTTP/1.1
__Host: google.com
__Cookie: AUTO
__Content-Length: AUTO
__Content-Type: application/x-www-form-urlencoded
__Referer: https://google.com/sk/ucet/prihlasenie/
__
__csrfmiddlewaretoken=$csrf&username=eduard@adaptiware.com&password=123&
_EXPECT . "302 Found"
_WAIT
_CLOSE

_REQ google.com SSL:443
_DEBUG user profile
__GET /sk/ucet/ HTTP/1.1
__Host: google.com
__Cookie: AUTO
__Connection: keep-alive
__
_EXPECT . "200 OK"
_WAIT
_CLOSE

END
