Fwd: Missing WWW-Authenticate header

Lalit Kumar Garg <[email protected]> Tue, 14 Oct 2014 15:41:41 -0400
Newsgroups gmane.comp.java.grinder.user
Message-ID <CAN3ha8Po4mfmgCvMhx=cX9A7KvsVR-RzkP0NLy9ngmpy4xBCKQ@mail.gmail.com>
Hi Team,

I tried doing the same. But this could not help.
One more thing is, I am not able to print the default headers for the
HttpRequest object. I am not sure whether nGrinder sets the some default
headers to a request object or not. Even I could not find a way to set the
default headers to the request object. The
Connection.setDefaultHeaders(...) does not work for me.

I want to set few default headers like below:

Request Headers:

Connection: close

x-auth-token: AUTH_tk6d581e806b994778acc0559bcccdc9c6

Content-Length: 0

Content-Type: text/plain; charset=ISO-8859-1

Host: hostname

User-Agent: Apache-HttpClient/4.2.6 (java 1.5)


Thanks,

Lalit


On Mon, Oct 13, 2014 at 6:13 PM, Adil qureshi <[email protected]> wrote:

> Instead of writing the script...first record a sample using default tool
> ..use google only for test recording. .. then modify as per requirement, ,,,
> On 13 Oct 2014 21:24, "Lalit Kumar Garg" <[email protected]> wrote:
>
>> Hi Philip,
>>
>> I am newbie to nGrinder. I was trying to do the Http calls by GET, PUT
>> operations.
>> When I run the script multiple times, I am getting
>> "java.net.ProtocolException: Missing WWW-Authenticate header" error,
>> and this seems to be due to HTTP response code 401.
>>
>> I was doubting this because of Connection status being "Keep-Alive". I
>> tried closing the connection by changing
>> the grinder.properties file and also by modifying the script. Both does
>> not work.
>>
>> I have attached the script, error log and the grinder.properties file
>> reference. Any help to get rid of the "Missing WWW-Authenticate header"
>> would be of a great help.
>>
>> Thanks much in advance,
>> Lalit
>>
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> _______________________________________________
>> grinder-use mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> grinder-use mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>
>


-- 
Thanks,
Lalit



-- 
Thanks,
Lalit

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use