capture full httpservice url?
is there simple way capture full url (parameters included) when httpservice sent? i'd put url in variable later use.
you @ url , body properties on corresponding httprequestmessage , reconstruct url (assuming method="get"). can message either asynchronous completion token returned calling httpservice.send(), or via invokeevent's message property registering invoke="invokehandler(event)" listener on <mx:httpservice>.
if you're not using server side gateway / proxy, client-side mx.messaging.channels.directhttpchannel class manages http request. sets query parameters append url in mx_internal::createurlrequest() method around line 234:
var urlvariables:urlvariables = new urlvariables();
var body:object = httpmsg.body;
for (var p:string in body)
urlvariables[p] = httpmsg.body[p];
params = urlvariables.tostring();
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment