IIS6 and downloadable JAR file  
Author Message
Youllneverwalkalone





PostPosted: Tue Mar 02 16:45:37 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Hi IIS gurus,

I use IIS as download server for a Java based application (DoJa for
mobile phone). How it works : the phone download a package descriptor (a
.JAM text file), this file contains JAR package URL.

Phone downloads well both files on a Apache plateform but it refuses to
download files on a IIS/6 plateforme. MIME Type are the same, content
expiration disabled or enabled, i have the same behavior.

I compare headers between IIS/6 and Apache with a simple
GET /file.jar HTTP/1.1 (with JAM, i have the same scenario)

-------------8<-----------------------------------8<----------
HTTP/1.1 200 OK
Connection: Keep-Alive
Cache-Control: max-age=86400
Date: Tue, 02 Mar 2004 08:44:37 GMT
Content-Length: 23139
Content-Type: application/java-archive
Last-Modified: Mon, 01 Mar 2004 13:11:20 GMT
Accept-Ranges: bytes
Age: 0
ETag: "77dd71b08effc31:9ea"
Server: Microsoft-IIS/6.0
X-Pad: avoid browser bug

PK (binary data)
-------------8<-----------------------------------8<----------
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Tue, 02 Mar 2004 05:50:58 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4
Last-Modified: Mon, 01 Mar 2004 16:55:25 GMT
ETag: "4000b9-5a63-40436afd"
Accept-Ranges: bytes
Content-Length: 23139
Content-Type: text/plain
Age: 10118

PK (binary data)
-------------8<-----------------------------------8<----------

The only difference i see is X-Tag header.
Binary data are identical.

Any idea why cellular phone refuse to download the files ?
J'ai comparé les headers, en dehors du X-Tag, rien ne différencie l'un
de l'autre. Y a t il un moyen de supprimer ce header ?

Merci,
Antoine D.

--
Valid email : remove the 2 N(zero)SPAM strings

Web Programming271  
 
 
David





PostPosted: Tue Mar 02 16:45:37 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Sounds like a problem with your client since you can retrieve it with
another client. It is not clear in your comparison, but I want to know if
the Apache response headers are delimited by "\n" or "\r\n".

In your comparison, I see that Content-Type: and Age: headers are different
between the two servers, in addition to the X-Pad header. Why? I do not
know if it makes a difference to your client or not.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Antoine Drochon" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
Hi IIS gurus,

I use IIS as download server for a Java based application (DoJa for
mobile phone). How it works : the phone download a package descriptor (a
.JAM text file), this file contains JAR package URL.

Phone downloads well both files on a Apache plateform but it refuses to
download files on a IIS/6 plateforme. MIME Type are the same, content
expiration disabled or enabled, i have the same behavior.

I compare headers between IIS/6 and Apache with a simple
GET /file.jar HTTP/1.1 (with JAM, i have the same scenario)

-------------8<-----------------------------------8<----------
HTTP/1.1 200 OK
Connection: Keep-Alive
Cache-Control: max-age=86400
Date: Tue, 02 Mar 2004 08:44:37 GMT
Content-Length: 23139
Content-Type: application/java-archive
Last-Modified: Mon, 01 Mar 2004 13:11:20 GMT
Accept-Ranges: bytes
Age: 0
ETag: "77dd71b08effc31:9ea"
Server: Microsoft-IIS/6.0
X-Pad: avoid browser bug

PK (binary data)
-------------8<-----------------------------------8<----------
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Tue, 02 Mar 2004 05:50:58 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4
Last-Modified: Mon, 01 Mar 2004 16:55:25 GMT
ETag: "4000b9-5a63-40436afd"
Accept-Ranges: bytes
Content-Length: 23139
Content-Type: text/plain
Age: 10118

PK (binary data)
-------------8<-----------------------------------8<----------

The only difference i see is X-Tag header.
Binary data are identical.

Any idea why cellular phone refuse to download the files ?
J'ai comparé les headers, en dehors du X-Tag, rien ne différencie l'un
de l'autre. Y a t il un moyen de supprimer ce header ?

Merci,
Antoine D.

--
Valid email : remove the 2 N(zero)SPAM strings


 
 
Jerry





PostPosted: Tue Mar 02 16:48:05 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Your MIME type is not the same, IIS returns application/java-archive while
Apache returns text/plain.

Jerry

"Antoine Drochon" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Hi IIS gurus,
>
> I use IIS as download server for a Java based application (DoJa for
> mobile phone). How it works : the phone download a package descriptor (a
> .JAM text file), this file contains JAR package URL.
>
> Phone downloads well both files on a Apache plateform but it refuses to
> download files on a IIS/6 plateforme. MIME Type are the same, content
> expiration disabled or enabled, i have the same behavior.
>
> I compare headers between IIS/6 and Apache with a simple
> GET /file.jar HTTP/1.1 (with JAM, i have the same scenario)
>
> -------------8<-----------------------------------8<----------
> HTTP/1.1 200 OK
> Connection: Keep-Alive
> Cache-Control: max-age=86400
> Date: Tue, 02 Mar 2004 08:44:37 GMT
> Content-Length: 23139
> Content-Type: application/java-archive
> Last-Modified: Mon, 01 Mar 2004 13:11:20 GMT
> Accept-Ranges: bytes
> Age: 0
> ETag: "77dd71b08effc31:9ea"
> Server: Microsoft-IIS/6.0
> X-Pad: avoid browser bug
>
> PK (binary data)
> -------------8<-----------------------------------8<----------
> HTTP/1.1 200 OK
> Connection: Keep-Alive
> Date: Tue, 02 Mar 2004 05:50:58 GMT
> Server: Apache/1.3.29 (Unix) PHP/4.3.4
> Last-Modified: Mon, 01 Mar 2004 16:55:25 GMT
> ETag: "4000b9-5a63-40436afd"
> Accept-Ranges: bytes
> Content-Length: 23139
> Content-Type: text/plain
> Age: 10118
>
> PK (binary data)
> -------------8<-----------------------------------8<----------
>
> The only difference i see is X-Tag header.
> Binary data are identical.
>
> Any idea why cellular phone refuse to download the files ?
> J'ai comparé les headers, en dehors du X-Tag, rien ne différencie l'un
> de l'autre. Y a t il un moyen de supprimer ce header ?
>
> Merci,
> Antoine D.
>
> --
> Valid email : remove the 2 N(zero)SPAM strings


 
 
Antoine





PostPosted: Wed Mar 03 06:27:21 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Jerry III wrote:
> Your MIME type is not the same, IIS returns application/java-archive while
> Apache returns text/plain.

Phone works with text/plain on Apache.
I tried also with MIME application/java-archive, phone refuses to download.

Antoine.
 
 
Antoine





PostPosted: Wed Mar 03 07:14:33 CST 2004 Top

IIS >> IIS6 and downloadable JAR file David Wang [Msft] wrote:

> Sounds like a problem with your client since you can retrieve it with
> another client. It is not clear in your comparison, but I want to
> know if the Apache response headers are delimited by "\n" or "\r\n".

I agree with you, it sounds like a client problem.
I the 4 samples below, it is more clear.

> In your comparison, I see that Content-Type: and Age: headers are
> different between the two servers, in addition to the X-Pad header.
> Why? I do not know if it makes a difference to your client or not.

I tested with the same Content-Type, Age and X-Pad.
On the phone, only the Apache version works :(

Throught Wget i got (it is important to notice that it is *through*
Wget, i hope it reflects raw data captured).

CR = <US-ASCII CR, carriage return (13 or 0D)>
LF = <US-ASCII LF, linefeed (10 or 0A)>

### On Apache ###

HTTP/1.1 200 OK[LF]
Connection: Keep-Alive[LF]
Date: Wed, 03 Mar 2004 12:41:54 GMT[LF]
Server: Apache/1.3.29 (Unix) PHP/4.3.4[LF]
Last-Modified: Wed, 03 Mar 2004 12:37:53 GMT[LF]
ETag: "4000b8-104-4045d1a1"[LF
Accept-Ranges: bytes[LF]
Content-Length: 260[LF]
Content-Type: application/x-jam[LF]
Age: 0[LF]
[LF]
PackageURL = Package.jar[CR][LF]
(...bytes...)

HTTP/1.1 200 OK[LF]
Connection: Keep-Alive[LF]
Date: Wed, 03 Mar 2004 12:54:22 GMT[LF]
Server: Apache/1.3.29 (Unix) PHP/4.3.4[LF]
Last-Modified: Wed, 03 Mar 2004 12:37:53 GMT[LF]
ETag: "4000b9-5ee1-4045d1a1"[LF]
Accept-Ranges: bytes[LF]
Content-Length: 24289[LF]
Content-Type: application/java-archive[LF]
Age: 0[LF]
[LF]
PK(...bytes...)

### On IIS6 ###

HTTP/1.1 200 OK[LF]
Connection: Keep-Alive[LF]
Date: Wed, 03 Mar 2004 12:48:48 GMT[LF]
Content-Length: 260[LF]
Content-Type: application/x-jam[LF]
Last-Modified: Tue, 02 Mar 2004 18:28:12 GMT[LF]
Accept-Ranges: bytes[LF]
Age: 0[LF]
ETag: "bff5db1e840c41:a62"[LF]
Server: Microsoft-IIS/6.0[LF]
[LF]
PackageURL = Package.jar[CR][LF]
(...bytes...)

HTTP/1.1 200 OK[LF]
Connection: Keep-Alive[LF]
Date: Wed, 03 Mar 2004 13:01:18 GMT[LF]
Content-Length: 24289[LF]
Content-Type: application/java-archive[LF]
Last-Modified: Tue, 02 Mar 2004 18:28:12 GMT[LF]
Accept-Ranges: bytes[LF]
Age: 0[LF]
ETag: "bff5db1e840c41:a62"[LF]
Server: Microsoft-IIS/6.0[LF]
[LF]
PK(...bytes...)


Thank you for your help.

Antoine D.
 
 
Antoine





PostPosted: Wed Mar 03 10:06:54 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Antoine Drochon wrote:

> David Wang [Msft] wrote:
>
>> Sounds like a problem with your client since you can retrieve it with
>> another client. It is not clear in your comparison, but I want to
>> know if the Apache response headers are delimited by "\n" or "\r\n".

> Thank you for your help.

Now this work.
How do i (and a good advice!) solve it ?

I wrote a download.aspx ASP.NET script that read JAM file binary and i
output it using Response.WriteFile().

Antoine D.
 
 
Jerry





PostPosted: Wed Mar 03 20:06:54 CST 2004 Top

IIS >> IIS6 and downloadable JAR file I would say that's your problem, you need to change IIS' MIME type for your
file to text/plain.

Jerry

"Antoine Drochon" <EMail@HideDomain.com> wrote in message
news:4045cf29$0$21657$EMail@HideDomain.com...
> Jerry III wrote:
> > Your MIME type is not the same, IIS returns application/java-archive
while
> > Apache returns text/plain.
>
> Phone works with text/plain on Apache.
> I tried also with MIME application/java-archive, phone refuses to
download.
>
> Antoine.


 
 
Antoine





PostPosted: Thu Mar 04 09:14:02 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Jerry III wrote:
> I would say that's your problem, you need to change IIS' MIME type for your
> file to text/plain.

It does not work with text/plain on IIS/6.

Antoine.
 
 
David





PostPosted: Thu Mar 04 20:44:59 CST 2004 Top

IIS >> IIS6 and downloadable JAR file Can you use NetMon (network sniffer included with Windows Server 2003) and
get a capture of what is returned in the successful case with ASP.Net as
well as unsuccessful case ? That would help tremendously in figuring out
what the phone client is not agreeable with.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Antoine Drochon" <EMail@HideDomain.com> wrote in message
news:4046029e$0$28133$EMail@HideDomain.com...
Antoine Drochon wrote:

> David Wang [Msft] wrote:
>
>> Sounds like a problem with your client since you can retrieve it with
>> another client. It is not clear in your comparison, but I want to
>> know if the Apache response headers are delimited by "\n" or "\r\n".

> Thank you for your help.

Now this work.
How do i (and a good advice!) solve it ?

I wrote a download.aspx ASP.NET script that read JAM file binary and i
output it using Response.WriteFile().

Antoine D.