How to avoid %2 in URLs being replaced with a MAC address

Started by rmpf2

A question: how to use %2 in a statement without interfering with MAC variable?
SoftPerfect Support forum - Andrew avatar image

Re: How to avoid %2 in URLs being replaced with a MAC address   31 December 2016, 18:05

Could you please give an example of what you are trying to do?
In applications I define a new one that call Internet Explorer to browse for an specific address with similar values used by NS that cannot be replaced because the web server misunderstands the search call and returns an error.

Example:
http://localhost/script/../...%3%2C.....%5Fvalue...

In NS manual there is something similar but with {}:
"...Since the Network Scanner interprets braces as user-prompted parameters, you may have problems with passing a value containing braces, for example a GUID. In this case double the braces, e.g. myapp.exe {{12345678-ABCD-EFGH-1234-567890ABCDEF}}, so that this value is not treated as a user-prompted parameter."

I'm having problems passing values that contain %2, so I am asking if you could design an alternative method to bypass the replacement so this value is not treated as the NS internal system MAC value.
SoftPerfect Support forum - Andrew avatar image

Re: How to avoid %2 in URLs being replaced with a MAC address   01 January 2017, 01:34

What's the exact URL you are using? Perhaps there's no need to have pre-encoded data as a browser can encode it.
Is it possible to discuss it and share the URL outside the public forum?
SoftPerfect Support forum - Andrew avatar image

Re: How to avoid %2 in URLs being replaced with a MAC address   01 January 2017, 02:24

Sure, simply send a message using our support contact centre.
SoftPerfect Support forum - Ann avatar image
Ann

Re: How to avoid %2 in URLs being replaced with a MAC address   01 January 2017, 17:01

A solution: use unencoded URLs.

That is, instead of using
http://localhost/script/xxxx?xxx=%2&xxxx=http%3A%2F%2Flocalhost%2Fxxxx%2C%5CPortableApps%5Cxxxx...
use this URL
http://localhost/script/xxxx?xxx=%2&xxxx=http://localhost/xxxx,\PortableApps\xxxx...

Not only is it easier to read, but the incorrect replacement would also not occur. The encoding process (converting of slashes and other non-alphanumeric characters to codes) should be done by the browser.

A URL decoder (e.g. www.urldecoder.org) may be helpful for simplifying your URLs.

Reply to this topic

Sometimes you can get the answer faster if you try the forum search and/or have a look at the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 **    **  ********  **               **  **        
  **  **      **     **    **         **  **    **  
   ****       **     **    **         **  **    **  
    **        **     **    **         **  **    **  
    **        **     *********  **    **  ********* 
    **        **           **   **    **        **  
    **        **           **    ******         **  

Message: