@rohitpateldgm
What version of BAS are you using?
What OS are you using?
Does this problem only occur with one project or with others too?
Please attach the project you are having the problem with to this thread or in a private message on the forum.
Strange error in bas
-
@support i want to include a variable in header . Value of variable is Cgt5dGllZE5SeVBBRA%3D%3D . But when i make request including this variable it is blank .


FOR EXAMPLE --
let var m = Cgt5dGllZE5SeVBBRA%3D%3D
Now if i want to make get request like this GET http://[[m]].com
i am getting following error in http sniffer-
Url: http://
Cgt5dGllZE5SeVBBRAMethodDMethodD.com
Method: GETI think there is something wrong with encoding ??
-
@andy231 everything is work fine, you can send anything you want. https://imgur.com/a/G216e and https://imgur.com/a/Q2fLN and https://imgur.com/a/Lxo5h
-
@seedgg Just noticed that setting the value manually is working but i am scraping that value from a website . Sent you website url in pm . Saving the value and using it is resulting in blank .
And about encoding, it seems that its sniffer who is messing as its converting it in methodDMethodD even in your case.
Thanks for your clarification and effort .
-
@andy231 said in Strange error in bas:
Just noticed that setting the value manually is working but i am scraping that value from a website . Sent you website url in pm . Saving the value and using it is resulting in blank .
And about encoding, it seems that its sniffer who is messing as its converting it in methodDMethodD even in your case.
Thanks for your clarification and effort .please
-
@andy231 when you parse you variable it look like :
"Cgs5Q1o5TW9ZV0UyUg%3D%3D".
You must clean this variable from "\n". Just use block replace string with parameter "\n" as a erxpression with empty parameter. Look at the test script. Use your URL with variable here.
