title: LoadRunner web_add_header() and redirects
body: <p>First I run this from VUGen (it is built by hand):</p>
  
  <pre><code>Action()
  {
      web_cleanup_cookies();
      web_cache_cleanup();
  
      web_url("entrypoint", 
              "URL=http://e34jbsl00430.devillo.com:8080/entrypoint/", 
              "TargetFrame=", 
              "Resource=0", 
              "RecContentType=text/html", 
              "Referer=",
              "Mode=HTML", 
              LAST);
  
      return 0;
  }
  </code></pre>
  
  <p>And the page is failing to open and a sessionid is appearing in the URL. Possibly after some redirects.</p>
  
  <p>When doing this manually in Firefox with FireBug turned on, I get this request/response headers:</p>
  
  <pre><code>Response Headers
  
  Cache-Control   no-cache, no-store
  
  Content-Length  0
  
  Date    Fri, 19 Apr 2013 13:49:51 GMT
  
  Expires Thu, 01 Jan 1970 00:00:00 GMT
  
  Location        http://e34jbsl00430.devillo.com:8080/entrypoint/?0
  
  Pragma  no-cache
  
  Server  Apache-Coyote/1.1
  
  Set-Cookie      ENTRYPOINT_JSESSIONID=WgfuCXmTF7VTCsmhWYvU-WY7; Path=/entrypoint; HttpOnly
  
  X-Frame-Options DENY
  
  
  
  Request Headers
  
  Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  
  Accept-Encoding gzip, deflate
  
  Accept-Language no,en-gb;q=0.7,en;q=0.3
  
  Connection      keep-alive
  
  Cookie  ENTRYPOINT_JSESSIONID=DnVj0xzyLaUOKfUEFIP6bpF-
  
  Host    e34jbsl00430.devillo.no:8080
  
  User-Agent      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
  </code></pre>
  
  <p>Then I run the same script but with <code>web_add_header("Cookie","ENTRYPOINT_JSESSIONID=dummy");
  </code>
  And it works just fine.</p>
  
  <p>Why is adding this dummy header to my script makeing this work?</p>