html tool

2021年11月3日星期三

ld: urlencode url

 参考:

https://vsprasad.wordpress.com/2016/05/25/loadrunner-convert-html-data-to-url-data-or-url-data-to-html-data-and-pass-it-to-the-loadrunner-request/

https://admhelp.microfocus.com/vugen/en/2021-2021_R1/help/function_reference/Content/FuncRef/web/examples/lrFuncRef_WVF_w_conv_prm_Example.htm

https://blog.csdn.net/genius5200/article/details/7890285 [popexizhi:这个地址有单独的方法,看着不错,但我没有尝试]


  lr_save_string(lr_eval_string("{url}"),"curl"),
  web_convert_param("curl", "SourceEncoding=PLAIN","TargetEncoding=URL", LAST );
  lr_output_message("%s", lr_eval_string("{curl}"));  
	
  


没有评论:

发表评论