     'Cookie': cookie
     'X-XsrfToken': xsrf
     'Content-Type': 'application/json'
+    'User-Agent': 'ingress-table'
 
   data =
     params: [portals]

  options = getRequestOptions 'GET', apiHost, xsrfPath
  options.headers =
    'Cookie': cookie
  req = https.request options, (res) ->
    return callback new Error 'XSFR request failed' unless res.statusCode is 200
    data = ''
    res.on 'data', (chunk) ->
      data += chunk

  cookiePath = loginPath + '?' + querystring.stringify
    auth: auth
  options = getRequestOptions 'GET', apiHost, cookiePath
  options.headers =
    'User-Agent': 'ingress-table'
  req = https.request options, (res) ->
    unless res.headers['set-cookie']
      return callback new Error 'No cookie received'
