Jump to content


Photo

Authorization HTTP Header removed.


  • Please log in to reply
1 reply to this topic

#1 bennieeat

bennieeat

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 20 February 2013 - 08:54 AM

I am load testing a REST service that requires a basic authentication authorization header.
When I set a HTTP Header, in the Request itself or in the Profile Defaults, it is removed from the request that is made.
Request Headers
Accept-Language : en-GB
Accept-Tenant : uk
Authorization : Basic aVBob25lLVYxOmVjNjhlNTY3NjU4NGRkN2ZiZjMxN2IzOWY0M2VmNWY1MDJhMjljNzc=
Accept-Charset : utf-8
Host : http://xxxxx-labs.com
User-Agent: perftesting
Content-Type :  application/json

It also appears to be stripping out the Content-Type Header.

This worked fine in 2.0 but we have now upgraded to 3.0 and are seeing the above behaviour.

Logs from Wapt Console
<% 00:00:00.000(08:41:14.551) REQUEST_HEADER %>
[% CONTENT 263 %]
GET /books?q=n1 HTTP/1.0
Accept-Language: en-GB
Accept-Tenant: uk
Accept-Charset: utf-8
User-Agent: perftesting
Host: http://xxxxx-labs.com

<% 00:00:00.000(08:41:14.551) RESPONSE_FAILED %>
[% CONTENT 252 %]
HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Wed, 20 Feb 2013 08:41:14 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 97
Connection: Close


<% 00:00:00.000(08:41:14.551) RESPONSE_BODY %>
[% CONTENT 97 %]
{"Errors":[{"ErrorType":"Error","Message":"Authorization header is not valid"}],"HasErrors":true}


#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 665 posts

Posted 27 February 2013 - 10:22 AM

It was a bug, it has been fixed now.
Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users