Import of RR Pairs to Asset Catalog Generates Unexpected Request

book

Article ID: 206909

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

Importing an RR Pair in a zip archive file fails to import correctly.
The Request is:

GET /inventory/carMake/index.json  HTTP/1.1
Content-Type: application/json
Connection: Keep-Alive
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

but after importing the RR pair zip archive, the resultant Action is POST and the URL is http://localhost/

Cause

There are multiple spaces between the URI and HTTP version (between /inventory/carMake/index.json and HTTP/1.1) in the request file of the RR pair zip archive.  The third party parser used to parse this file expects a single space as specified in the following specifications:

https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1

https://www.w3.org/Protocols/HTTP/1.0/spec.html

Environment

Release : SAAS

Component : BLAZEMETER MOCK SERVICES

Resolution

Remove the extra spaces in the request message (single space between the action, URI, and HTTP version fields), then save the changes to the RR pair zip archive before importing into the Mock Services Asset Catalog.