Hi Tim
I am using phoengap app at client
side. every http get-call is fine but there is one api at server side
which takes the phonebook from the client. client is sending post call
which on average has 30-40kb of data. but every time this body i m
getting is trimmed and data is trimmed from front-side(20-30% time i am
getting full data). i checked at client side it is sending full data. is
there any limit for size in post request.
my client side call is
var parameters =
[
{name:'mobiles',value:frndMobs},
{name:'names',value:frndNms},
{name:'name',value:name},
{name:'mobile',value:mobile},
{name:'mobtyp',value:'2'},
{name:'source',value:'2'},
{name:'wap',value:'1'},
{name:'udid',value:lsS.getItem('androidId')}
];
$.post(apiPathNeo+"UploadAddressBook", parameters, function(res) {
......................
}
my vertx side post handler is
def mod = req.params.get('mod')
def api = req.params.get('api')
logging(req)
if(mod.contentEquals('tri')){
if(api.contentEquals('UploadAddressBook')){
def body = new Buffer(0)
req.bodyHandler { buffer ->
body.appendBuffer(buffer as Buffer)
new AddrBookWrite().addrUpload(req,body.toString())
}
}
}
})
my body size varies randomly in each call :( , and the data is trimmed
from front. what can i do to avoid random nature and to get whole data.
On Saturday, 25 January 2014 12:16:41 UTC+5:30, Rakesh choudhary wrote:
Hi Tim
I am using phoengap app at client
side. every http get-call is fine but there is one api at server side
which takes the phonebook from the client. client is sending post call
which on average has 30-40kb of data. but every time this body i m
getting is trimmed and data is trimmed from front-side(20-30% time i am
getting full data). i checked at client side it is sending full data. is
there any limit for size in post request.
my client side call is
var parameters =
[
{name:'mobiles',value:frndMobs},
{name:'names',value:frndNms},
{name:'name',value:name},
{name:'mobile',value:mobile},
{name:'mobtyp',value:'2'},
{name:'source',value:'2'},
{name:'wap',value:'1'},
{name:'udid',value:lsS.getItem('androidId')}
];
$.post(apiPathNeo+"UploadAddressBook.php", parameters, function(res) {
......................
}
my vertx side post handler is
def mod = req.params.get('mod')
def api = req.params.get('api')
logging(req)
if(mod.contentEquals('tri')){
if(api.contentEquals('UploadAddressBook')){
def body = new Buffer(0)
req.bodyHandler { buffer ->
body.appendBuffer(buffer as Buffer)
new AddrBookWrite().addrUpload(req,body.toString())
}
}
}
})
my body size varies randomly in each call :( , and the data is trimmed from front. what can i do to avoid random nature and to get whole data.