Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Insert From URL Script Step and Url Encoding

Featured Replies

  • Newbies

I was very happy because of this new script step but I can't use it since it's change a well formatted URL in something else automatically.

This is part of the url request correctly formatted (if I paste it in a browser or I use scriptmaster, it works)

(1) %09%2B393397186745%09Gentile%20Comandante%20Carlo%20Maaak%2c%0a%0asiamo%20felici….

this is how the Insert From URL Script Step submit it

(2) %09+393397186745%09Gentile%20Comandante%20Carlo%20Maaak,%0A%0Asiamo%20felici….

You may notice, for example, that

%2B that is a "+" correctly URL encoded in the url (1) is "+" in url (2)

%2c that is that is a "," correctly URL encoded in the url (1) is "," in url (2)

If you get into this problem, before wasting a lot of time as I did, I suggest to use the application "wire shark" to see the network traffic, thanks to this application I was able to get string (2)

(NB. It's to late to use the substitute function since it's the last step from FMP to the web server that receives the http requests.)

Any idea to solve the problem?

Thank You

Gianco

Have you tried the GetAsURLEncoded function?

  • 2 years later...

Have you tried the GetAsURLEncoded function?

 

Yes. He did. His URL (1) shows a properly-encoded %2B. What happens is that the script step silently UN-encoded that into a + when it is sent to the server. 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.