Skip to main content

getResponseCode() = 100

17 replies [Last post]
Anonymous

What is the suggested fix for HTTP getResponseCode() = 100? It seems like a
server error but is there a client solution

Thanks

Solutions for your enterprise data

Chris Rotberg
President InfieldData,Inc
65 Enterprise

Aliso Viejo, CA 92656
chrisr@infielddata.com
www.infielddata.com
AIM:
tel:
fax:
mobile:
Skype ID:
SkypeIn #: 949-837-3728

949-583-9985
949-254-6337

Add me
to your address book... Want a signature
like this?

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kim Daniel Arthur

Wild guess... Could it be that since you are sending Connection: close the
client assumes it will get a http 1.0 response and hence fails to handle the
100 correctly as it is http 1.1?

On 10/1/07 20:26, "Chris Rotberg" wrote:

> I am doing a POST and not using flush(). I am using a V365 and don't have a
> great emulator, does anyone have any canned code for this than I can plug in
> to see if it works
>
>
> ic = (HttpConnection) Connector.open(buf.toString(), Connector.READ_WRITE);
> ic.setRequestMethod( HttpConnection.POST );
> String u = url;
>
> //ic.setRequestProperty("User-Agent","Profile/MIDP-1.0
> Configuration/CLDC-1.0"); //Don't use with .NET
>
> //ic.setRequestProperty("Http-version","HTTP/1.0");
>
> ic.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
> ic.setRequestProperty("Content-Length",
> Integer.toString( u.length() ));
> ic.setRequestProperty("Content-Language",
> "en-US");
> ic.setRequestProperty ( "Connection", "close" );
> OutputStream out = ic.openOutputStream();
> byte[] expData = u.getBytes();
> out.write( expData );
> try{
> out.close();
> out = null;
> } catch (Exception e){}
>
> Thanks
>
> -----Original Message-----
> From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Kim Daniel Arthur
> Sent: Wednesday, January 10, 2007 11:23 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
> Btw, are you sending a POST or GET, if you are sending a POST make sure you
> are NOT calling flush() on the outputstream before you .close() it.
>
>
> On 10/1/07 20:05, "Chris Rotberg" wrote:
>
>> This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work
>> well with .Net
>>
>> _____
>>
>> From: A mailing list for KVM discussion
>> [mailto:KVM-INTEREST@JAVA.SUN.COM]
>> On Behalf Of Joe Bowbeer
>> Sent: Wednesday, January 10, 2007 10:53 AM
>> To: KVM-INTEREST@JAVA.SUN.COM
>> Subject: Re: getResponseCode() = 100
>>
>>
>> PS - See my earlier post about this:
>>
>> http://archives.java.sun.com/cgi-bin/wa?A2=ind0510
>> >> 955>
>> &L=kvm-interest&P=5955
>>
>>
>> On 1/10/07, Joe Bowbeer wrote:
>>
>> This is probably a bug in the http client not the server. (Server is
>> .NET
>> right?)
>>
>> The bug I've encountered is that the client interprets the 200
>> response as the payload of the 100 response. The HttpConnection
>> *should* either ignore the 100 or deliver it as a separate response.
>>
>> What http client are you using? Can you do us a favor and report this
>> as a bug?
>>
>>
>>
>>
>> On 1/10/07, Chris Rotberg < crotberg@hotmail.com
>> > wrote:
>>
>> I am using the Close,so I have to parse to the 200 and then read from
> there?
>>
>>
>>
>>
>>
>>
>> ======================================================================
>> ===== To unsubscribe, send email to listserv@java.sun.com and include
>> in the body of the message "signoff KVM-INTEREST". For general help,
>> send email to listserv@java.sun.com and include in the body of the
>> message "help".
>>
>> ======================================================================
>> ===== To unsubscribe, send email to listserv@java.sun.com and include
>> in the body of the message "signoff KVM-INTEREST". For general help,
>> send email to listserv@java.sun.com and include in the body of the
>> message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris Rotberg

I don't know, this code works great on Nextel, Sprint and Blackberries. This
v365 on Cingular is the first time the response 100 returned

-----Original Message-----
From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Kim Daniel Arthur
Sent: Wednesday, January 10, 2007 11:49 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

Wild guess... Could it be that since you are sending Connection: close the
client assumes it will get a http 1.0 response and hence fails to handle the
100 correctly as it is http 1.1?

On 10/1/07 20:26, "Chris Rotberg" wrote:

> I am doing a POST and not using flush(). I am using a V365 and don't
> have a great emulator, does anyone have any canned code for this than
> I can plug in to see if it works
>
>
> ic = (HttpConnection) Connector.open(buf.toString(),
Connector.READ_WRITE);
> ic.setRequestMethod( HttpConnection.POST );
> String u = url;
>
> //ic.setRequestProperty("User-Agent","Profile/MIDP-1.0
> Configuration/CLDC-1.0"); //Don't use with .NET
>
> //ic.setRequestProperty("Http-version","HTTP/1.0");
>
> ic.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
> ic.setRequestProperty("Content-Length",
> Integer.toString( u.length() ));
> ic.setRequestProperty("Content-Language",
> "en-US");
> ic.setRequestProperty ( "Connection", "close"
);
> OutputStream out = ic.openOutputStream();
> byte[] expData = u.getBytes();
> out.write( expData );
> try{
> out.close();
> out = null;
> } catch (Exception e){}
>
> Thanks
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Kim Daniel Arthur
> Sent: Wednesday, January 10, 2007 11:23 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
> Btw, are you sending a POST or GET, if you are sending a POST make
> sure you are NOT calling flush() on the outputstream before you .close()
it.
>
>
> On 10/1/07 20:05, "Chris Rotberg" wrote:
>
>> This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work
>> well with .Net
>>
>> _____
>>
>> From: A mailing list for KVM discussion
>> [mailto:KVM-INTEREST@JAVA.SUN.COM]
>> On Behalf Of Joe Bowbeer
>> Sent: Wednesday, January 10, 2007 10:53 AM
>> To: KVM-INTEREST@JAVA.SUN.COM
>> Subject: Re: getResponseCode() = 100
>>
>>
>> PS - See my earlier post about this:
>>
>> http://archives.java.sun.com/cgi-bin/wa?A2=ind0510
>> >> 5
>> 955>
>> &L=kvm-interest&P=5955
>>
>>
>> On 1/10/07, Joe Bowbeer wrote:
>>
>> This is probably a bug in the http client not the server. (Server is
>> .NET
>> right?)
>>
>> The bug I've encountered is that the client interprets the 200
>> response as the payload of the 100 response. The HttpConnection
>> *should* either ignore the 100 or deliver it as a separate response.
>>
>> What http client are you using? Can you do us a favor and report
>> this as a bug?
>>
>>
>>
>>
>> On 1/10/07, Chris Rotberg < crotberg@hotmail.com
>> > wrote:
>>
>> I am using the Close,so I have to parse to the 200 and then read from
> there?
>>
>>
>>
>>
>>
>>
>> =====================================================================
>> = ===== To unsubscribe, send email to listserv@java.sun.com and
>> include in the body of the message "signoff KVM-INTEREST". For
>> general help, send email to listserv@java.sun.com and include in the
>> body of the message "help".
>>
>> =====================================================================
>> = ===== To unsubscribe, send email to listserv@java.sun.com and
>> include in the body of the message "signoff KVM-INTEREST". For
>> general help, send email to listserv@java.sun.com and include in the
>> body of the message "help".
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Kim Daniel Arthur

Btw, are you sending a POST or GET, if you are sending a POST make sure you
are NOT calling flush() on the outputstream before you .close() it.

On 10/1/07 20:05, "Chris Rotberg" wrote:

> This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work well
> with .Net
>
> _____
>
> From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Joe Bowbeer
> Sent: Wednesday, January 10, 2007 10:53 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
>
> PS - See my earlier post about this:
>
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0510
>
> &L=kvm-interest&P=5955
>
>
> On 1/10/07, Joe Bowbeer wrote:
>
> This is probably a bug in the http client not the server. (Server is .NET
> right?)
>
> The bug I've encountered is that the client interprets the 200 response as
> the payload of the 100 response. The HttpConnection *should* either ignore
> the 100 or deliver it as a separate response.
>
> What http client are you using? Can you do us a favor and report this as a
> bug?
>
>
>
>
> On 1/10/07, Chris Rotberg < crotberg@hotmail.com
> > wrote:
>
> I am using the Close,so I have to parse to the 200 and then read from there?
>
>
>
>
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris Rotberg

I am doing a POST and not using flush(). I am using a V365 and don't have a
great emulator, does anyone have any canned code for this than I can plug in
to see if it works

ic = (HttpConnection) Connector.open(buf.toString(), Connector.READ_WRITE);
ic.setRequestMethod( HttpConnection.POST );
String u = url;

//ic.setRequestProperty("User-Agent","Profile/MIDP-1.0
Configuration/CLDC-1.0"); //Don't use with .NET

//ic.setRequestProperty("Http-version","HTTP/1.0");

ic.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
ic.setRequestProperty("Content-Length",
Integer.toString( u.length() ));
ic.setRequestProperty("Content-Language",
"en-US");
ic.setRequestProperty ( "Connection", "close" );
OutputStream out = ic.openOutputStream();
byte[] expData = u.getBytes();
out.write( expData );
try{
out.close();
out = null;
} catch (Exception e){}

Thanks

-----Original Message-----
From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Kim Daniel Arthur
Sent: Wednesday, January 10, 2007 11:23 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

Btw, are you sending a POST or GET, if you are sending a POST make sure you
are NOT calling flush() on the outputstream before you .close() it.

On 10/1/07 20:05, "Chris Rotberg" wrote:

> This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work
> well with .Net
>
> _____
>
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Joe Bowbeer
> Sent: Wednesday, January 10, 2007 10:53 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
>
> PS - See my earlier post about this:
>
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0510
> > 955>
> &L=kvm-interest&P=5955
>
>
> On 1/10/07, Joe Bowbeer wrote:
>
> This is probably a bug in the http client not the server. (Server is
> .NET
> right?)
>
> The bug I've encountered is that the client interprets the 200
> response as the payload of the 100 response. The HttpConnection
> *should* either ignore the 100 or deliver it as a separate response.
>
> What http client are you using? Can you do us a favor and report this
> as a bug?
>
>
>
>
> On 1/10/07, Chris Rotberg < crotberg@hotmail.com
> > wrote:
>
> I am using the Close,so I have to parse to the 200 and then read from
there?
>
>
>
>
>
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris B

One in the API:

void postViaHttpConnection(String url) throws IOException {
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
int rc;

try {
c = (HttpConnection)Connector.open(url);

// Set the request method and headers
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("If-Modified-Since",
"29 Oct 1999 19:43:31 GMT");
c.setRequestProperty("User-Agent",
"Profile/MIDP-2.0 Configuration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-US");

// Getting the output stream may flush the headers
os = c.openOutputStream();
os.write("LIST games\n".getBytes());
os.flush(); // Optional, getResponseCode will flush

// Getting the response code will open the connection,
// send the request, and read the HTTP response headers.
// The headers are stored until requested.
rc = c.getResponseCode();
if (rc != HttpConnection.HTTP_OK) {
throw new IOException("HTTP response code: " + rc);
}

is = c.openInputStream();

// Get the ContentType
String type = c.getType();
processType(type);

// Get the length and process the data
int len = (int)c.getLength();
if (len > 0) {
int actual = 0;
int bytesread = 0 ;
byte[] data = new byte[len];
while ((bytesread != len) && (actual != -1)) {
actual = is.read(data, bytesread, len - bytesread);
bytesread += actual;
}
process(data);
} else {
int ch;
while ((ch = is.read()) != -1) {
process((byte)ch);
}
}
} catch (ClassCastException e) {
throw new IllegalArgumentException("Not an HTTP URL");
} finally {
if (is != null)
is.close();
if (os != null)
os.close();
if (c != null)
c.close();
}
}

----- Original Message -----
From: "Chris Rotberg"
To:
Sent: Wednesday, January 10, 2007 7:26 PM
Subject: Re: getResponseCode() = 100

>I am doing a POST and not using flush(). I am using a V365 and don't have a
> great emulator, does anyone have any canned code for this than I can plug
> in
> to see if it works
>
>
> ic = (HttpConnection) Connector.open(buf.toString(),
> Connector.READ_WRITE);
> ic.setRequestMethod( HttpConnection.POST );
> String u = url;
>
> //ic.setRequestProperty("User-Agent","Profile/MIDP-1.0
> Configuration/CLDC-1.0"); //Don't use with .NET
>
> //ic.setRequestProperty("Http-version","HTTP/1.0");
>
> ic.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
> ic.setRequestProperty("Content-Length",
> Integer.toString( u.length() ));
> ic.setRequestProperty("Content-Language",
> "en-US");
> ic.setRequestProperty ( "Connection",
> "close" );
> OutputStream out = ic.openOutputStream();
> byte[] expData = u.getBytes();
> out.write( expData );
> try{
> out.close();
> out = null;
> } catch (Exception e){}
>
> Thanks
>
> -----Original Message-----
> From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Kim Daniel Arthur
> Sent: Wednesday, January 10, 2007 11:23 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
> Btw, are you sending a POST or GET, if you are sending a POST make sure
> you
> are NOT calling flush() on the outputstream before you .close() it.
>
>
> On 10/1/07 20:05, "Chris Rotberg" wrote:
>
>> This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work
>> well with .Net
>>
>> _____
>>
>> From: A mailing list for KVM discussion
>> [mailto:KVM-INTEREST@JAVA.SUN.COM]
>> On Behalf Of Joe Bowbeer
>> Sent: Wednesday, January 10, 2007 10:53 AM
>> To: KVM-INTEREST@JAVA.SUN.COM
>> Subject: Re: getResponseCode() = 100
>>
>>
>> PS - See my earlier post about this:
>>
>> http://archives.java.sun.com/cgi-bin/wa?A2=ind0510
>> >> 955>
>> &L=kvm-interest&P=5955
>>
>>
>> On 1/10/07, Joe Bowbeer wrote:
>>
>> This is probably a bug in the http client not the server. (Server is
>> .NET
>> right?)
>>
>> The bug I've encountered is that the client interprets the 200
>> response as the payload of the 100 response. The HttpConnection
>> *should* either ignore the 100 or deliver it as a separate response.
>>
>> What http client are you using? Can you do us a favor and report this
>> as a bug?
>>
>>
>>
>>
>> On 1/10/07, Chris Rotberg < crotberg@hotmail.com
>> > wrote:
>>
>> I am using the Close,so I have to parse to the 200 and then read from
> there?
>>
>>
>>
>>
>>
>>
>> ======================================================================
>> ===== To unsubscribe, send email to listserv@java.sun.com and include
>> in the body of the message "signoff KVM-INTEREST". For general help,
>> send email to listserv@java.sun.com and include in the body of the
>> message "help".
>>
>> ======================================================================
>> ===== To unsubscribe, send email to listserv@java.sun.com and include
>> in the body of the message "signoff KVM-INTEREST". For general help,
>> send email to listserv@java.sun.com and include in the body of the
>> message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Joe Bowbeer

Reiterating kimd's comment: eliminating the os.flush() may avoid the
problem.

On 1/10/07, Chris B wrote:
>
> One in the API:
>
> void postViaHttpConnection(String url) throws IOException {
> HttpConnection c = null;
> InputStream is = null;
> OutputStream os = null;
> int rc;
>
> try {
> c = (HttpConnection)Connector.open(url);
>
> // Set the request method and headers
> c.setRequestMethod(HttpConnection.POST);
> c.setRequestProperty("If-Modified-Since",
> "29 Oct 1999 19:43:31 GMT");
> c.setRequestProperty("User-Agent",
> "Profile/MIDP-2.0 Configuration/CLDC-1.0");
> c.setRequestProperty("Content-Language", "en-US");
>
> // Getting the output stream may flush the headers
> os = c.openOutputStream();
> os.write("LIST games\n".getBytes());
> os.flush(); // Optional, getResponseCode will flush
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Chris Rotberg

That is ChrisB code, I don't use flush

_____

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Joe Bowbeer
Sent: Wednesday, January 10, 2007 12:16 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

Reiterating kimd's comment: eliminating the os.flush() may avoid the
problem. When I use

setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");

it returns Error Code 400

On 1/10/07, Chris B >
wrote:

One in the API:

void postViaHttpConnection(String url) throws IOException {
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
int rc;

try {
c = (HttpConnection)Connector.open(url);

// Set the request method and headers
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("If-Modified-Since",
"29 Oct 1999 19:43:31 GMT");
c.setRequestProperty("User-Agent",
"Profile/MIDP-2.0 Configuration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-US");

// Getting the output stream may flush the headers
os = c.openOutputStream();
os.write("LIST games\n".getBytes());
os.flush(); // Optional, getResponseCode will flush

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Chris Rotberg

I am using .Net

Found this Microsoft Article

http://support.microsoft.com/kb/898708/

_____

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Joe Bowbeer
Sent: Wednesday, January 10, 2007 10:51 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

This is probably a bug in the http client not the server. (Server is .NET
right?)

The bug I've encountered is that the client interprets the 200 response as
the payload of the 100 response. The HttpConnection *should* either ignore
the 100 or deliver it as a separate response.

What http client are you using? Can you do us a favor and report this as a
bug?

On 1/10/07, Chris Rotberg <
crotberg@hotmail.com> wrote:

I am using the Close,so I have to parse to the 200 and then read from there?

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Kim Daniel Arthur

Yeah, afaik if you open the stream to the body of the 100 response you will
normally get a new full http response after it so you need to parse the
response code , headers and so on yourself.

On 10/1/07 19:23, "Chris Rotberg" wrote:

> I am using the Close,so I have to parse to the 200 and then read from there?
>
>
> -----Original Message-----
> From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Kim Daniel Arthur
> Sent: Wednesday, January 10, 2007 5:47 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
> It's a continue response,
> http://www.jmarshall.com/easy/http/#http1.1c4
>
> Normally the complete 200 response will follow just after and you'll have to
> read and parse it yourself before reading the actual body
>
> Are you sending the "Connection: close" header, if you're not give it a try
> it might force it to use http 1.0?
>
> Cheers,
> kimd
>
>
> On 10/1/07 14:24, "Zyl, Alexander" wrote:
>
>> Hi,
>>
>>
>>
>> 100 - 199 - information messages. Usually client should answer on
>> message.
>>
>> Please see
>> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.1
>>
>>
>>
>>
>>
>> Best,
>>
>> Alexander Zyil
>>
>>
>>
>> Mobile Dept Manager
>>
>> Tel: 375 17 293 3736 (ext. 438)
>>
>> www.scnsoft.com
>>
>>
>>
>> ICQ: 165233933
>>
>> MSN zyl.alexander@hotmail.com
>>
>> Skype: alexander.zyl
>>
>>
>>
>> E-mail: zyl@scnsoft.com
>>
>> Web: www.scnsoft.com
>>
>> ________________________________
>>
>> From: A mailing list for KVM discussion
>> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris Rotberg
>> Sent: Wednesday, January 10, 2007 11:07 AM
>> To: KVM-INTEREST@JAVA.SUN.COM
>> Subject: getResponseCode() = 100
>>
>>
>>
>> What is the suggested fix for HTTP getResponseCode() = 100? It seems
>> like a server error but is there a client solution
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>> Solutions for your enterprise data
>>
>>
>>
>> Chris Rotberg
>> President
>>
>> InfieldData,Inc
>> 65 Enterprise
>> Aliso Viejo, CA 92656
>> >> o+
>> Viejo%2C+CA+92656&country=us>
>>
>> chrisr@infielddata.com
>> www.infielddata.com
>> AIM:
>>
>> tel:
>> fax:
>> mobile:
>> Skype ID:
>> SkypeIn #:
>>
>> 949-837-3728
>> >> ma
>> il=crotberg@hotmail.com>
>> 949-583-9985
>> 949-254-6337
>> >> ma
>> il=crotberg@hotmail.com>
>>
>>
>>
>> Add me to your address book...
>>
>>
>> Want a signature like this?
>>
>>
>>
>> ======================================================================
>> == === To unsubscribe, send email to listserv@java.sun.com and include
>> in the body of the message "signoff KVM-INTEREST". For general help,
>> send email to listserv@java.sun.com and include in the body of the
>> message "help".
>>
>> ======================================================================
>> ===== To unsubscribe, send email to listserv@java.sun.com and include
>> in the body of the message "signoff KVM-INTEREST". For general help,
>> send email to listserv@java.sun.com and include in the body of the
>> message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris Rotberg

I read a lot of articles about parsing the reponse code if it is 100 and
then finding the 200, but the data never reached the server. If the POST
succeeds it should write a record to the server and then just return the 100
and then the 200 in the same response. The record is not written so it was
not successful so the issue is the POST and not the response. It must be
more server

-----Original Message-----
From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Kim Daniel Arthur
Sent: Wednesday, January 10, 2007 11:04 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

Yeah, afaik if you open the stream to the body of the 100 response you will
normally get a new full http response after it so you need to parse the
response code , headers and so on yourself.

On 10/1/07 19:23, "Chris Rotberg" wrote:

> I am using the Close,so I have to parse to the 200 and then read from
there?
>
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Kim Daniel Arthur
> Sent: Wednesday, January 10, 2007 5:47 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
> It's a continue response,
> http://www.jmarshall.com/easy/http/#http1.1c4
>
> Normally the complete 200 response will follow just after and you'll
> have to read and parse it yourself before reading the actual body
>
> Are you sending the "Connection: close" header, if you're not give it
> a try it might force it to use http 1.0?
>
> Cheers,
> kimd
>
>
> On 10/1/07 14:24, "Zyl, Alexander" wrote:
>
>> Hi,
>>
>>
>>
>> 100 - 199 - information messages. Usually client should answer on
>> message.
>>
>> Please see
>> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.1
>>
>>
>>
>>
>>
>> Best,
>>
>> Alexander Zyil
>>
>>
>>
>> Mobile Dept Manager
>>
>> Tel: 375 17 293 3736 (ext. 438)
>>
>> www.scnsoft.com
>>
>>
>>
>> ICQ: 165233933
>>
>> MSN zyl.alexander@hotmail.com
>>
>> Skype: alexander.zyl
>>
>>
>>
>> E-mail: zyl@scnsoft.com
>>
>> Web: www.scnsoft.com
>>
>> ________________________________
>>
>> From: A mailing list for KVM discussion
>> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris Rotberg
>> Sent: Wednesday, January 10, 2007 11:07 AM
>> To: KVM-INTEREST@JAVA.SUN.COM
>> Subject: getResponseCode() = 100
>>
>>
>>
>> What is the suggested fix for HTTP getResponseCode() = 100? It seems
>> like a server error but is there a client solution
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>> Solutions for your enterprise data
>>
>>
>>
>> Chris Rotberg
>> President
>>
>> InfieldData,Inc
>> 65 Enterprise
>> Aliso Viejo, CA 92656
>> >> s
>> o+
>> Viejo%2C+CA+92656&country=us>
>>
>> chrisr@infielddata.com
>> www.infielddata.com
>> AIM:
>>
>> tel:
>> fax:
>> mobile:
>> Skype ID:
>> SkypeIn #:
>>
>> 949-837-3728
>> >> E
>> ma
>> il=crotberg@hotmail.com>
>> 949-583-9985
>> 949-254-6337
>> >> E
>> ma
>> il=crotberg@hotmail.com>
>>
>>
>>
>> Add me to your address book...
>>
>>
>> Want a signature like this?
>>
>>
>>
>> =====================================================================
>> = == === To unsubscribe, send email to listserv@java.sun.com and
>> include in the body of the message "signoff KVM-INTEREST". For
>> general help, send email to listserv@java.sun.com and include in the
>> body of the message "help".
>>
>> =====================================================================
>> = ===== To unsubscribe, send email to listserv@java.sun.com and
>> include in the body of the message "signoff KVM-INTEREST". For
>> general help, send email to listserv@java.sun.com and include in the
>> body of the message "help".
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Zyl, Alexander

Hi,

100 - 199 - information messages. Usually client should answer on
message.

Please see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.1

Best,

Alexander Zyil

Mobile Dept Manager

Tel: 375 17 293 3736 (ext. 438)

www.scnsoft.com

ICQ: 165233933

MSN zyl.alexander@hotmail.com

Skype: alexander.zyl

E-mail: zyl@scnsoft.com

Web: www.scnsoft.com

________________________________

From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris Rotberg
Sent: Wednesday, January 10, 2007 11:07 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: getResponseCode() = 100

What is the suggested fix for HTTP getResponseCode() = 100? It seems
like a server error but is there a client solution

Thanks

Solutions for your enterprise data

Chris Rotberg
President

InfieldData,Inc
65 Enterprise
Aliso Viejo, CA 92656
Viejo%2C+CA+92656&country=us>

chrisr@infielddata.com
www.infielddata.com
AIM:

tel:
fax:
mobile:
Skype ID:
SkypeIn #:

949-837-3728
il=crotberg@hotmail.com>
949-583-9985
949-254-6337
il=crotberg@hotmail.com>

Add me to your address book...

Want a signature like this?

========================================================================
=== To unsubscribe, send email to listserv@java.sun.com and include in
the body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Kim Daniel Arthur

It's a continue response,
http://www.jmarshall.com/easy/http/#http1.1c4

Normally the complete 200 response will follow just after and you'll have to
read and parse it yourself before reading the actual body

Are you sending the "Connection: close" header, if you're not give it a try
it might force it to use http 1.0?

Cheers,
kimd

On 10/1/07 14:24, "Zyl, Alexander" wrote:

> Hi,
>
>
>
> 100 - 199 - information messages. Usually client should answer on
> message.
>
> Please see
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.1
>
>
>
>
>
> Best,
>
> Alexander Zyil
>
>
>
> Mobile Dept Manager
>
> Tel: 375 17 293 3736 (ext. 438)
>
> www.scnsoft.com
>
>
>
> ICQ: 165233933
>
> MSN zyl.alexander@hotmail.com
>
> Skype: alexander.zyl
>
>
>
> E-mail: zyl@scnsoft.com
>
> Web: www.scnsoft.com
>
> ________________________________
>
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris Rotberg
> Sent: Wednesday, January 10, 2007 11:07 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: getResponseCode() = 100
>
>
>
> What is the suggested fix for HTTP getResponseCode() = 100? It seems
> like a server error but is there a client solution
>
>
>
> Thanks
>
>
>
>
>
> Solutions for your enterprise data
>
>
>
> Chris Rotberg
> President
>
> InfieldData,Inc
> 65 Enterprise
> Aliso Viejo, CA 92656
> > Viejo%2C+CA+92656&country=us>
>
> chrisr@infielddata.com
> www.infielddata.com
> AIM:
>
> tel:
> fax:
> mobile:
> Skype ID:
> SkypeIn #:
>
> 949-837-3728
> > il=crotberg@hotmail.com>
> 949-583-9985
> 949-254-6337
> > il=crotberg@hotmail.com>
>
>
>
> Add me to your address book...
>
>
> Want a signature like this?
>
>
>
> ========================================================================
> === To unsubscribe, send email to listserv@java.sun.com and include in
> the body of the message "signoff KVM-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris Rotberg

I am using the Close,so I have to parse to the 200 and then read from there?

-----Original Message-----
From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Kim Daniel Arthur
Sent: Wednesday, January 10, 2007 5:47 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

It's a continue response,
http://www.jmarshall.com/easy/http/#http1.1c4

Normally the complete 200 response will follow just after and you'll have to
read and parse it yourself before reading the actual body

Are you sending the "Connection: close" header, if you're not give it a try
it might force it to use http 1.0?

Cheers,
kimd

On 10/1/07 14:24, "Zyl, Alexander" wrote:

> Hi,
>
>
>
> 100 - 199 - information messages. Usually client should answer on
> message.
>
> Please see
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.1
>
>
>
>
>
> Best,
>
> Alexander Zyil
>
>
>
> Mobile Dept Manager
>
> Tel: 375 17 293 3736 (ext. 438)
>
> www.scnsoft.com
>
>
>
> ICQ: 165233933
>
> MSN zyl.alexander@hotmail.com
>
> Skype: alexander.zyl
>
>
>
> E-mail: zyl@scnsoft.com
>
> Web: www.scnsoft.com
>
> ________________________________
>
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Chris Rotberg
> Sent: Wednesday, January 10, 2007 11:07 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: getResponseCode() = 100
>
>
>
> What is the suggested fix for HTTP getResponseCode() = 100? It seems
> like a server error but is there a client solution
>
>
>
> Thanks
>
>
>
>
>
> Solutions for your enterprise data
>
>
>
> Chris Rotberg
> President
>
> InfieldData,Inc
> 65 Enterprise
> Aliso Viejo, CA 92656
> > o+
> Viejo%2C+CA+92656&country=us>
>
> chrisr@infielddata.com
> www.infielddata.com
> AIM:
>
> tel:
> fax:
> mobile:
> Skype ID:
> SkypeIn #:
>
> 949-837-3728
> > ma
> il=crotberg@hotmail.com>
> 949-583-9985
> 949-254-6337
> > ma
> il=crotberg@hotmail.com>
>
>
>
> Add me to your address book...
>
>
> Want a signature like this?
>
>
>
> ======================================================================
> == === To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and include
> in the body of the message "signoff KVM-INTEREST". For general help,
> send email to listserv@java.sun.com and include in the body of the
> message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Joe Bowbeer

This is probably a bug in the http client not the server. (Server is .NET
right?)

The bug I've encountered is that the client interprets the 200 response as
the payload of the 100 response. The HttpConnection *should* either ignore
the 100 or deliver it as a separate response.

What http client are you using? Can you do us a favor and report this as a
bug?

On 1/10/07, Chris Rotberg wrote:
>
> I am using the Close,so I have to parse to the 200 and then read from
> there?
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Joe Bowbeer

PS - See my earlier post about this:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0510&L=kvm-interest&P=5955

On 1/10/07, Joe Bowbeer wrote:
>
> This is probably a bug in the http client not the server. (Server is .NET
> right?)
>
> The bug I've encountered is that the client interprets the 200 response as
> the payload of the 100 response. The HttpConnection *should* either ignore
> the 100 or deliver it as a separate response.
>
> What http client are you using? Can you do us a favor and report this as
> a bug?
>
>
> On 1/10/07, Chris Rotberg < crotberg@hotmail.com> wrote:
> >
> > I am using the Close,so I have to parse to the 200 and then read from
> > there?
> >
> >
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Chris Rotberg

This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work well
with .Net

_____

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Joe Bowbeer
Sent: Wednesday, January 10, 2007 10:53 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: getResponseCode() = 100

PS - See my earlier post about this:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0510

&L=kvm-interest&P=5955

On 1/10/07, Joe Bowbeer wrote:

This is probably a bug in the http client not the server. (Server is .NET
right?)

The bug I've encountered is that the client interprets the 200 response as
the payload of the 100 response. The HttpConnection *should* either ignore
the 100 or deliver it as a separate response.

What http client are you using? Can you do us a favor and report this as a
bug?

On 1/10/07, Chris Rotberg < crotberg@hotmail.com
> wrote:

I am using the Close,so I have to parse to the 200 and then read from there?

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Kim Daniel Arthur

Can you see in the request log which http version the client is sending in
the request? And also a complete list of headers on the request?

On 10/1/07 20:05, "Chris Rotberg" wrote:

> This user-agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 didn't work well
> with .Net
>
> _____
>
> From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
> On Behalf Of Joe Bowbeer
> Sent: Wednesday, January 10, 2007 10:53 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: getResponseCode() = 100
>
>
> PS - See my earlier post about this:
>
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0510
>
> &L=kvm-interest&P=5955
>
>
> On 1/10/07, Joe Bowbeer wrote:
>
> This is probably a bug in the http client not the server. (Server is .NET
> right?)
>
> The bug I've encountered is that the client interprets the 200 response as
> the payload of the 100 response. The HttpConnection *should* either ignore
> the 100 or deliver it as a separate response.
>
> What http client are you using? Can you do us a favor and report this as a
> bug?
>
>
>
>
> On 1/10/07, Chris Rotberg < crotberg@hotmail.com
> > wrote:
>
> I am using the Close,so I have to parse to the 200 and then read from there?
>
>
>
>
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".