jasonwood Posted June 9, 2004 Posted June 9, 2004 I occasionally use the "Open URL" script step to submit a "GET" request from FileMaker, for example, to determine the shipping cost with canada post given the postal code, weight and dimensions. For example, here is a URL I created with a calculation field: http://www.canadapost.ca/scripts/RateNew.dll?MfcIsApiCommand=ParcelRate&language=english&service=Small+Bus&referrer=CPCBus&rateType=serv&choice=All+Services&when=urgent&srccode=L6J6M1&destcode=V2X3N6&type=Parcel&weight=1&wtoption=kg&length=49&width=32&depth=15&dimension=cm&insurance= Now the problem... I want to be able to look up a postal code to be sure the street name matches, but this particular form at Canada Post only supports POST, so that rules out using Open URL. Is there any way for me to submit a POST request?
DanBrill Posted June 9, 2004 Posted June 9, 2004 The Troi URL plug in should be able to do this. However, I've never been able to make it work in POST method, only GET method. They have an example of POST working, but I can't replicate it. I've heard of others with this problem. I don't know if this helps, but at least you have more info. Dan
DanBrill Posted June 9, 2004 Posted June 9, 2004 Just a thought, but you could use GET to send the data from FM to a web form you set up on your own web site, process it with a cgi in Perl or something, and then pass it on again to the final destination using POST. No plugin needed this way. Dan
jasonwood Posted June 9, 2004 Author Posted June 9, 2004 That plugin looks pretty sweet... too bad it doesn't work in 7... but I'm sure it won't be long. Thanks for the other idea. not terribly elegant but it looks like it might do the trick.
DanBrill Posted June 11, 2004 Posted June 11, 2004 Hey Jason, Actually the site says that it probably works with 7 anyway, but they haven't really gone in there and made sure it is 100% compatible. I tested it with 7 and it seems to work fine. Dan
fmplugin Posted August 2, 2004 Posted August 2, 2004 FMWebschool has a plug-in that works with 6 and 7, it's at: http://www.fmwebschool.com/fmweburl.htm It allows you to use http and https
Recommended Posts
This topic is 7421 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now