Hi,
when I send a "_" in http service request ,the request doesnt seem to go correctly.
<s:HTTPService id="userRequest" url="http://{ipaddress.text}" useProxy="false" method="POST" resultFormat="object" result="userRequest_resultHandler(event)">
<s:request xmlns="">
<login_username>{login_username.text}</login_username>
<login_password>{login_password.text}</login_password>
</s:request>
</s:HTTPService>
when I debug my code the request is being as login%5fusername:login%5fpassword.can anyone tell me any alternate way to get rid of this?
I have to send the tag as such
login_username
login_password
ansuman04
can anyone please reply ??I am pasting the entire mobile app code
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
<fx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.utils.Base64Encoder;
import spark.events.IndexChangeEvent;
public var u:String;
public var p:String;
public var listView:String;
public var AuthKey:String;
public var encoder:Base64Encoder;
public var result:Object;
protected function button1_clickHandler(event:MouseEvent):void
{
u=login_username.text.toLowerCase();
p=login_password.text.toLowerCase();
if((u==''||u!='apc')||(p==''||p!='apc')){
(new AlertMsg()).open(this, false);
}
else{
userRequest.send();
navigator.pushView(views.DetailsView);
}
}
protected function userRequest_resultHandler(event:ResultEvent):void
{
result =new Object;
result=event.target.data;
}
]]>
</fx:Script>
<fx:Declarations>
<fx:Component className="AlertMsg">
<s:SkinnablePopUpContainer x="50" y="250">
<s:TitleWindow title="My Message" close="close()">
<s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
<s:Label text="Enter the correct userid/password"/>
<s:Button label="OK" click="close()"/>
</s:VGroup>
</s:TitleWindow>
</s:SkinnablePopUpContainer>
</fx:Component>
<s:HTTPService id="userRequest" url="http://{ipaddress.text}" useProxy="false" method="POST" result="userRequest_resultHandler(event)">
<s:request xmlns="">
<login_username>{login_username.text}</login_username>
<login_password>{login_password.text}</login_password>
</s:request>
</s:HTTPService>
</fx:Declarations>
<s:List left="0" right="0" top="0" bottom="0" ></s:List>
<s:Label x="19" y="33" text="Ip Address"/>
<s:TextInput id="ipaddress" x="22" y="75" width="244" height="31"/>
<s:Label x="22" y="135" width="111" text="username"/>
<s:TextInput id="login_username" x="20" y="166" width="246" height="36"/>
<s:Label x="20" y="220" text="password"/>
<s:TextInput id="login_password" x="20" y="261" width="246" height="34"/>
<s:Button x="20" y="325" height="49" label="Submit" click="button1_clickHandler(event)" />
</s:View>
North America
Europe, Middle East and Africa
Asia Pacific