BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-21-2004, 12:01 PM   #1
fabius
Knows Where the Search Button Is
 
Join Date: Sep 2004
Posts: 24
Default setRequestProperty Content-Length don't work

Please Login to Remove!

Hi,

in my code set connection content-length
by

c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("User-Agent", "BlackBerry/3.2.1");
c.setRequestProperty("Content-Language", "en-US");
c.setRequestProperty("Content-Length", String.valueOf(length));

and write in outputStream
by

byte[] requestArray = request.getBytes();
for (int i = 0, l=requestArray.length; i < l; i++) {
os.write(requestArray[i]);
}

but if requestArray is too large, write operation fails!

Why?
c.setRequestProperty("Content-Length"... works in 7230 Handheld?

Thanks for any suggestion.
fabius
Offline  
Old 09-21-2004, 08:17 PM   #2
eradis
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Default

If it works on the 7230 it should work? Are you trying this on a real device? What model is it not working on?
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2519.95



6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS picture

6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS

$5.89



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



Vintage Holt Commodore Commercial Floor Scrubber Polisher Buffer Burnisher 20

Vintage Holt Commodore Commercial Floor Scrubber Polisher Buffer Burnisher 20"

$399.99



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.