title: How to capture signalR connection string in Jmeter
body: <p>I am getting error when script is executed in jmeter, because of signalr connection</p>
  
  <p>I need to pass connectionToken and connectionData in the url as below.</p>
  
  <p>"/Web/signalr/connect?transport=longPolling&amp;clientProtocol=1.5&amp;connectionToken=${connectionToken}&amp;connectionData=${connectionData}"</p>
  
  <p>i am able to capture ConnectionToken and passing that successfully. but, i am facing issue with connectionData, which looks like </p>
  
  <p>[{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}]</p>
  
  <p>How to capture and pass this.
  Please find the screeshots</p>
  
  <p>! <a href="https://i.stack.imgur.com/SVbgp.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>! <a href="https://i.stack.imgur.com/w6uOe.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>! <a href="https://i.stack.imgur.com/wfvoe.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>! <a href="https://i.stack.imgur.com/r0Xz2.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>not able to capture below connection string</p>
  
  <p>connectionData: [{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}]</p>
  
  <p>get method sends above connectionData as </p>
  
  <p>GET //abc.com/Web/signalr/negotiate?clientProtocol=1.5&amp;connectionData=%5B%7B%22name%22%3A%22alertshub%22%7D%2C%7B%22name%22%3A%22loggerhub%22%7D%2C%7B%22name%22%3A%22notificationhub%22%7D%5D&amp;_=1522754518635</p>
  
  <p>and am getting the response connectionToken. i am able to extract connectionToken .</p>
  
  <p>now, i need to send </p>
  
  <p>GET //abc.com/Web/signalr/connect?transport=serverSentEvents&amp;clientProtocol=1.5&amp;tid=10&amp;connectionToken=%27FcFUJytTeVDsNq4EM5iY59NrIlAO4EK0nU%2BP9fDasBFDTA%2B78kpLr05HaQoqstQouqyFMP2hShwh2eHdiG%2BCsRq7wNHs70BVSkjJiLIdyePfB3SmMCmeZeZyvd1xzfnc%27&amp;connectionData=%255B%257B%2522name%2522%253A%2522alertshub%2522%257D%252C%257B%2522name%2522%253A%2522loggerhub%2522%257D%252C%257B%2522name%2522%253A%2522notificationhub%2522%257D%255D%26_%3D1522754518635</p>
  
  <p>It has valid connectionToken(extracted) but not the connectionData.</p>
  
  <p>Response is  Unexpected character encountered while parsing value: %. Path '', line 0, position 0.</p>
  
  <p>my question is how can i get this values, [{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}].</p>
  
  <p>and next i need to post </p>
  
  <p>POST //abc.com/Web/signalr/connect?transport=longPolling&amp;clientProtocol=1.5&amp;connectionToken=FcFUJytTeVDsNq4EM5iY59NrIlAO4EK0nU+P9fDasBFDTA+78kpLr05HaQoqstQouqyFMP2hShwh2eHdiG+CsRq7wNHs70BVSkjJiLIdyePfB3SmMCmeZeZyvd1xzfnc&amp;connectionData=%5B%7B%22name%22%3A%22alertshub%22%7D%2C%7B%22name%22%3A%22loggerhub%22%7D%2C%7B%22name%22%3A%22notificationhub%22%7D%5D&amp;_=1522754518635</p>
  
  <p>as you can see here, it has valid connectionToken but not connectionData.</p>
  
  <p>Response for this is : The ConnectionId is in the incorrect format.</p>
  
  <p><a href="https://i.stack.imgur.com/4Dabo.png" rel="nofollow noreferrer">BlazeMeter1</a></p>
  
  <p><a href="https://i.stack.imgur.com/ibDAY.png" rel="nofollow noreferrer">Blazemeter2</a></p>
  
  <p><a href="https://i.stack.imgur.com/1zPe6.jpg" rel="nofollow noreferrer">Blazemeter3</a></p>