[flexcoders] httpservice url decode problem

2007-10-18 Thread coder3

Hi,

i need to use an url that contains / in the parameters.

like

mx:httpService id=srv
url=http://www.mydomain.com/eTraffic.cgi?target=%2Fed-switchports%2F100%2F1006%2F16;range=d;
result=resultHandler(event)/


i use unescapeMultiByte to convert first and then send it. 

srv.url = unescapeMultiByte(srv.url);
srv.send();


it still doesn't work. resultHandler(event) has not been called after that.

the data in result file has nothing wrong.  what is the problem?

-- 
View this message in context: 
http://www.nabble.com/httpservice-url-decode-problem-tf4649345.html#a13282349
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] httpservice url decode problem

2007-10-18 Thread Tracy Spratt
Can you either POST or GET the parameters in the request object instead
of concatenating the url?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coder3
Sent: Thursday, October 18, 2007 5:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] httpservice url decode problem

 


Hi,

i need to use an url that contains / in the parameters.

like

mx:httpService id=srv
url=http://www.mydomain.com/eTraffic.cgi?target=%2Fed-switchports%2F100
%2F1006%2F16;range=d
http://www.mydomain.com/eTraffic.cgi?target=%2Fed-switchports%2F100%2F1
006%2F16;range=d 
result=resultHandler(event)/

i use unescapeMultiByte to convert first and then send it. 

srv.url = unescapeMultiByte(srv.url);
srv.send();

it still doesn't work. resultHandler(event) has not been called after
that.

the data in result file has nothing wrong. what is the problem?

-- 
View this message in context:
http://www.nabble.com/httpservice-url-decode-problem-tf4649345.html#a132
82349
http://www.nabble.com/httpservice-url-decode-problem-tf4649345.html#a13
282349 
Sent from the FlexCoders mailing list archive at Nabble.com.