A url with id and name is passed on to the adress of my filemaker webdirect,how can I accept it and write on my program?
Passed how? A WebDirect URL can be constructed to pass parameters to a script in a file but the URL has to follow the WebDirect syntax. It can't be any URL.
If you have no control over the URL then you have create a middleware web service that can receive the URL, parse it out and then construct the WebDirect URL for you. Or otherwise write that data into FMS using the XML or Data API.
Retrieving data ...