Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - "MUST REPLY" HTTP response headers

 
Thread Tools Search this Thread
Old 04-13-2005, 09:22 AM   #1
Default "MUST REPLY" HTTP response headers


regards:

I write java code to simulate my machine as a HTTP server,
what is the "MUST REPLY" HTTP response headers?

In my small survey,I think there are 2 "MUST REPLY" HTTP response
headers.

(1)Content-Length: (length of content which will be transmitted)
(2)Content-Type: (by
http://www.iana.org/assignments/media-types/)

Does the program logic make sense?

thank you for your patient reply and instructions.
May goodness be with you all


mike
  Reply With Quote
Old 04-13-2005, 12:52 PM   #2
Rogan Dawes
 
Posts: n/a
Default Re: "MUST REPLY" HTTP response headers
mike wrote:
> regards:
>
> I write java code to simulate my machine as a HTTP server,
> what is the "MUST REPLY" HTTP response headers?
>
> In my small survey,I think there are 2 "MUST REPLY" HTTP response
> headers.
>
> (1)Content-Length: (length of content which will be transmitted)
> (2)Content-Type: (by
> http://www.iana.org/assignments/media-types/)
>
> Does the program logic make sense?
>
> thank you for your patient reply and instructions.
> May goodness be with you all


Read the RFC - RFC 2616, Sections 6 and 7, to be precise.

Neither of those headers that you mention are REQUIRED as such. End of
content can be signalled by simply closing the connection, and
applications can "guess" the content-type if the Content-Type header is
not present.

Rogan
--
Rogan Dawes

*ALL* messages to will be dropped, and added
to my blacklist. Please respond to "nntp AT dawes DOT za DOT net"


Rogan Dawes
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46