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.

Featured Replies

I've been running a script that imports orders from our client and posts a response in the format:

http://company.stage.program.com/updateOrderXml.asp?xml=12345RECEIVED BY PRINTER11/4/2010 9:30:06 AM >

I need to run the script server-side, so I want to use scriptmaster to post the URL.

We've registered the PostDataToUrl and the result of our script using the function is only "Error"

Not having a "Key" or "Value", I formatted the setfield to:

PostDataToURL( "" ; "" ; URLField )

Any suggestions?

Andy

The PostDatatoURL function is used for posting information to a URL with a POST request. The information you want to post is passed in the Key and Value parameters, which would be the name of the key you want to pass, and the value for that key. Leaving these two fields blank means that you are not passing any information.

The function is trying to post information with a POST request and the key "" with the value "" which isn't going to work because that isn't any information, and so the server is giving you an error. You will need to add the key and value that you are trying to post as the values in that parameter.

It looks like you may be needing to just access a URL with a set of parameters, which is your XML data passed as a URL parameter. You may want to try either just passing this URL into a web viewer, or you can check out our Web Assistant plugin, which has the WAGetURL function which may help you perform what you are trying to do.

  • Author

David,

If I understand correctly, I'd need a more complex relationship with the target of the post to use the functions in ScriptMaster.

Passing the URL into a web viewer is not available as a server-side scripting function. Is your Web Assistant able to run in a server-side script?

Andy

Based on your post, here is what you would use for the parameters:

The url is 'http://company.stage.program.com/updateOrderXml.asp'

The key is 'xml'

The value is '12345RECEIVED BY PRINTER11/4/2010 9:30:06 AM '

Edited by Guest

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.