title: How to use Curl from command line to post GET method with cookies
body: <p>`I have this requests that i have to send with windows xp</p>
  
  <pre><code>GET https://website.com/index.aspx?typeoflink=**[HERE-VARIABLE-FROM-FILE]**&amp;min=1 HTTP/1.1
  Accept: */*
  Referer: https://website.com/index.aspx?chknumbertypeoflink&amp;min=1
  Accept-Language: en-us
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
  Host: website.com
  Connection: Keep-Alive
  Cookie: cookieverrylongstringD%FG^&amp;N*MJ( CVV%^B&amp;N*&amp;*(NHN*B*&amp;BH*&amp;H
  </code></pre>
  
  <p>and this curl code here</p>
  
  <pre><code>   set TYPEOFLINK=foo
      curl https://website.com/index.aspx?typeoflink=%TYPEOFLINK%&amp;min=1 &gt; savedfile
  </code></pre>
  
  <p>how can i get curl to send cookies and referer and all the others?</p>
  
  <p>Thanks in advance 
  Adam</p>