From owner-freebsd-java@FreeBSD.ORG Sat Nov 1 10:01:24 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D89E316A4CE for ; Sat, 1 Nov 2003 10:01:24 -0800 (PST) Received: from md.swissinfo.org (md.swissinfo.org [146.159.4.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92A2943FAF for ; Sat, 1 Nov 2003 10:01:23 -0800 (PST) (envelope-from n_sidhaye@swissinfo.org) Received: from mail.swissinfo.org ([194.6.181.33]) by swissinfo.ch (md.swissinfo.org [146.159.6.10]) (MDaemon.PRO.v6.8.4.R) with ESMTP id 14-md50000021902.tmp for ; Sat, 01 Nov 2003 19:01:15 +0100 Received: from CSoftLink.com (61.1.104.225) by mail.swissinfo.org (7.0.020) (authenticated as n_sidhaye) id 3F585D66002289C1 for freebsd-java@freebsd.org; Sat, 1 Nov 2003 19:01:11 +0100 Date: Sat, 01 Nov 2003 18:42:40 +0530 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=utf-8; format=flowed References: From: Nikhil Sidhaye MIME-Version: 1.0 Message-ID: In-Reply-To: User-Agent: Opera7.11/Linux M2 build 406 X-MDRemoteIP: 194.6.181.33 X-Return-Path: n_sidhaye@swissinfo.org X-MDaemon-Deliver-To: freebsd-java@freebsd.org X-Spam-Checker-Version: SpamAssassin 2.54 (1.174.2.17-2003-05-11-exp) X-Spam-Processed: md.swissinfo.org, Sat, 01 Nov 2003 19:01:21 +0100 Subject: Invalid Content-Length in POST method X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: n_sidhaye@swissinfo.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2003 18:01:25 -0000 To all friends, Right now I am developing mobile solution (MIDlet). In one of module I wanted to post some data to resin HttpServer (Platform Unix variant). I got the error Invalid Content-Length 23,23. While 23 is the actual length passing to theHttpServer varying upon sending bytes. This happens if I omitted Content-Length Header. The interesting part is the same code works well in J2ME Simulator. In simulator if I changed case of content-length then error occurs. But on real device Nokia 3650 any way the server sends response Invalid Content- Length 23, 23. Is there is specific sequence to set request properties (POST Headers)? Thanks in Advance. ./Nikhil -- Using M2, Opera's revolutionary linux e-mail client: http://www.opera.com/m2/