Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

DataPower Authentication Error for First Try . Retry Passes !!!

$
0
0

Hello Folks

 

This is gonna be a bit lengthier one, sorry about it

 

Script Generation:

I have recorded a command line  utility named "cURL" using web / http protocol 

 

web_set_user("Test","TestPassword","ap-xxxx-adap-qa.xxxx.xx:443"); 
 
 lr_start_transaction("TestapAdapter");

 web_custom_request("xxxxaPAdapter",
  "URL=https://dp-xxxx-adap-qa.xx.xx/xxxaPAdapter",
  "Method=POST",
  "Resource=0",
  "RecContentType=application/octet-stream",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTTP",
  "Body={TextMessage}",
  LAST);

 lr_end_transaction("TestaPAdapter", LR_AUTO);

 

Issue Iam facing :

When I run the script, transaction is  getting  passed, but during the second re-try happening . I found this when I started the advance trace .I can see that the first time  it fail and gives 401 unauthorized error, when it retries second time, it passes . I have also found that when it attempts first time, authentication password is not send, where as when it retries the password is send and hence it gets passed.

 

I have marked the second time retry sending authorization password

 

Below is the log extended log information . I can see that

 

Action.c(13): t=3334ms: Connecting [0] to host x.x.x.x:443   [MsgId: MMSG-26000]
Action.c(13): t=3339ms: Connected socket [0] from x.x.x.x.x:68755 to x.x.x.x:443 in 4 ms   [MsgId: MMSG-26000]
Action.c(13): t=4595ms: 195-byte request headers for "https://ap-xx-adap-qa.test/xxxxapAdapter" (RelFrameId=1, Internal ID=1)
Action.c(13):     POST /xxxxapAdapter HTTP/1.1\r\n
Action.c(13):     Content-Type: application/x-www-form-urlencoded\r\n
Action.c(13):     User-Agent: curl/7.30.0\r\n
Action.c(13):     Accept: */*\r\n
Action.c(13):     Connection: Keep-Alive\r\n
Action.c(13):     Host: ap-xxxx-adap-qa.xxxx.test\r\n
Action.c(13):     Content-Length: 268\r\n
Action.c(13):     \r\n
Action.c(13): t=4608ms: 268-byte request body for "https://ap-xxxx-adap-qa.xxxx.xx/xxxxapAdapter" (RelFrameId=1, Internal ID=1)
Action.c(13):     Text1|text2
Action.c(13): t=4664ms: 317-byte response headers for "https://ap-xxxx-adap-qa.xxxx.xx/xxxxapAdapter" (RelFrameId=1, Internal ID=1)
Action.c(13):     HTTP/1.1 401 Unauthorized\r\n
Action.c(13):     X-Backside-Transport: FAIL FAIL,FAIL FAIL,FAIL FAIL\r\n
Action.c(13):     Connection: Keep-Alive\r\n
Action.c(13):     Transfer-Encoding: chunked\r\n
Action.c(13):     Content-Type: application/octet-stream\r\n
Action.c(13):     WWW-Authenticate: Basic realm=login\r\n
Action.c(13):     Date: Wed, 31 Jul 2013 01:36:44 GMT\r\n
Action.c(13):     X-Client-217.0.0.1,xxx.xx.xxx.xxx\r\n
Action.c(13):     X-Archived-Client-IP: 217.0.0.1\r\n
Action.c(13):     \r\n
Action.c(13): HTTP Status-Code=401 (Unauthorized) for "https://ap-xxxx-adap-qa.xxxx.xx/xxxxapAdapter"   [MsgId: MMSG-26630]
Action.c(13): Attempting retry due to the above HTTP Status-Code of 401 for "https://ap-xxxx-adap-qa.xxxx.xx/xxxxapAdapter"   [MsgId: MMSG-26678]
Action.c(13): t=4957ms: reporting user data point RETRY_401   [MsgId: MMSG-26000]
Action.c(13): t=4960ms: Already connected [0] to ap-xxxx-adap-qa.xxxx.xx:443   [MsgId: MMSG-26000]
Action.c(13): t=4961ms: 246-byte request headers for "https://ap-xxxx-adap-qa.xxxx.xx/xxxxapAdapter" (RelFrameId=1, Internal ID=1)
Action.c(13):     POST /xxxxapAdapter HTTP/1.1\r\n
Action.c(13):     Content-Type: application/x-www-form-urlencoded\r\n
Action.c(13):     User-Agent: curl/7.30.0\r\n
Action.c(13):     Accept: */*\r\n
Action.c(13):     Connection: Keep-Alive\r\n
Action.c(13):     Host: ap-xxxx-adap-qa.xxxx.xx\r\n
Action.c(13):     Authorization: Basic abcdefghUh0eGoioioxYXg=\r\n
Action.c(13):     Content-Length: 268\r\n
Action.c(13):     \r\n
Action.c(13):     HTTP/1.1 200 OK\r\n
Action.c(13):     X-Backside-Transport: OK OK,OK OK,OK OK,OK OK\r\n
Action.c(13):     Connection: Keep-Alive\r\n
Action.c(13):     Transfer-Encoding: chunked\r\n
Action.c(13):     Date: Wed, 31 Jul 2013 01:36:45 GMT\r\n
Action.c(13):     Server: IBM_HTTP_Server\r\n
Action.c(13):     Content-Type: application/octet-stream\r\n
Action.c(13):     Content-Language: en-US\r\n
Action.c(13):     X-Client-IP: 127.0.0.1,x.x.x.x,127.0.0.1,x.x.x.x\r\n
Action.c(13):     X-Archived-Client-IP: 127.0.0.1,127.0.0.1,x.x.x.x.,127.0.0.1,x.x.x.x,127.0.0.1\r\n
Action.c(13):     \r\n
Action.c(13): t=5581ms: Request done "https://ap-xxxx-adap-qa.xxxx.xx/xxxxapAdapter"   [MsgId: MMSG-26000]

 

 


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>