coldfusion - Passing a parameter in CFHTTP URL string -
i using cfhttp post series of user supplied parameters api. passing of parameters <cfhttparam> except one: {myid}. since {myid} value supplied user, wondering how can create sure gets passed within url string?
<cfhttp url="http://abc.xyz.com/webservice/{myid}/add/multiple" method="post" result="returnstruct" > <cfhttpparam name="accept" type="header" value="application/json" /> <cfhttpparam type="header" name="datetime" value="#datetime#" /> <cfhttpparam type="header" name="authorization" value="#authorization#" /> <cfhttpparam type="formfield" name="myapi" value="1" /> <cfhttpparam type="formfield" name="param1" value="1000" /> <cfhttpparam type="formfield" name="param2" value="myname@email.com" /> <cfhttpparam type="formfield" name="param3" value="2" /> <cfhttpparam type="formfield" name="param4" value="tester" /> </cfhttp>
the client aplication should have user's info previous request, if pass http://abc.xyz.com/webservice/user_id/add/multiple server assumes user_id parameter phone call {myid}
good luck
coldfusion coldfusion-9
No comments:
Post a Comment