[ grinder-Bugs-3524366 ] TCP Proxy 3.8 Invalid reference to defaultHeaders

SourceForge.net <[email protected]> Mon, 07 May 2012 08:09:34 -0700
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Bugs item #3524366, was opened at 2012-05-07 08:09
Message generated for change (Tracker Item Submitted) made by oviney
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3524366&group_id=18598

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: TCPProxy
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ouray Viney (oviney)
Assigned to: Nobody/Anonymous (nobody)
Summary: TCP Proxy 3.8 Invalid reference to defaultHeaders

Initial Comment:
Here is what Grinder 3.8 generates:

connectionDefaults.defaultHeaders = \
  [ NVPair('Accept-Language', 'en-us,en;q=0.5'),
    NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'),
    NVPair('Accept-Encoding', 'gzip,deflate'),
    NVPair('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28'), ]

And here is an invalid reference to that here:

request1801 = createRequest(Test(1801, 'POST redirect'), url6, defaultHeaders)
request1901 = createRequest(Test(1901, 'POST login.jsp'), url6, defaultHeaders)
request2001 = createRequest(Test(2001, 'POST init.do'), url7, defaultHeaders)
request2002 = createRequest(Test(2002, 'GET stylesheet.css'), url7, defaultHeaders)

I am guessing it should look like this:

request3407 = createRequest(Test(3407, 'GET jcarousellite_1.0.1.min.js'), url6, connectionDefaults.defaultHeaders)

or adjust the definition to:

defaultHeaders = \
  [ NVPair('Accept-Language', 'en-us,en;q=0.5'),
    NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'),
    NVPair('Accept-Encoding', 'gzip,deflate'),
    NVPair('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28'), ]

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3524366&group_id=18598

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/