• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

server response too large

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi.

i have a suite of apps that post to a web server and receive an xml response.
unfortunately, my latest test phone (sanyo scp-8100) seems to only be able to receive 390B of data from the server.
is there any way, aside from reducing the response content size, that i can get that response down the pipe to the application?
i.e. split it into chunks and download each chunk, discard headers, flush out the net buffer etc?

and is there any way to query the phone programmatically to find out what response size it can handle?

thanks so much

regards

caid
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just 390B... It looks like the size of a UDP datagram.

What kind of an address do you use to open connection when you call Connector.open()?
 
caid bradley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi. thanks for your reply.

c = (HttpConnection)Connector.open(http://server/XMLPayment/XMLPayment.aspx");
c.setRequestMethod(HttpConnection.POST);

any other thoughts?

regards

caid
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic