objective c - AFNetworking post request fails due to nsdictionary value with double quotes -
when set nsdictionary request parameters, dictionary values special character added double quotes , cause post request failed when use same dictionary values using "rest client (chrome add-ons)" request post successfully. how fix issue?
for example lat , long should float value because of special character double quotes added automatically. here nsdictionary log->
**
aptsuiteno = 20; buildingname = "the "; builtinyear = 2014; builtupareasize = 200; cityname = dhaka; countryname = bangladesh; createdate = "19-04-2016"; createdbycompanyid = 7746; createdbyuserid = 7915; currencyid = 1; description = "the "; lastupdatedate = "19-04-2016"; lastupdatedbyuserid = 7915; latitude = "23.832637"; localityname = cantonment; longitude = "90.416590"; neighborhoodname = "nikunja 2"; placeid = chijieh0al7gvtcrvmjqalwgyvc; postedby = owner; price = 200; propertybathroomnumber = 1; propertybedroomnumber = 1; propertybuildupareasizetypeid = 1; propertyid = 0; propertylotsize = 250; propertylotsizetypeid = 1; propertyname = "the "; propertytransactiontypecategoryid = 1; propertytransactiontypeid = 1; propertytypeid = 10; statename = "dhaka division"; stateticker = "dhaka division"; zipcode = 1229;
**
nsmutableurlrequest *request = [[afjsonrequestserializer serializer] requestwithmethod:@"post" urlstring:requesturl parameters:[self requestdatastring] error:&error];
Comments
Post a Comment