http headers

http headers

am 05.05.2005 05:50:40 von AlexK

Excuse me if this is OT here. I'm trying to find out what would happen
if I append my:

Content-Type: application/x-javascript
Content-Length: nnn



To an http answer in transit.
1) Does appending such a thing to an http answer which already has it's
own content-type and length headers and data, is allowed ?
2) How would a typical browser understand it ? Would it just ignore it
?

If the answer to (1) is "no": what would you suggest to do ?
I've thought of capturing the stream, and creating multi-part. The
first part would be the captured one, and the second - the data I want
to append. Does it seem as a good scheme to you ?

Alex

Re: http headers

am 05.05.2005 14:37:03 von Sam

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.

--=_mimegpg-commodore.email-scan.com-25616-1115296622-0002
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

alexk writes:

> Excuse me if this is OT here. I'm trying to find out what would happen
> if I append my:
>
> Content-Type: application/x-javascript
> Content-Length: nnn
>
>
>
> To an http answer in transit.
> 1) Does appending such a thing to an http answer which already has it's
> own content-type and length headers and data, is allowed ?

Of course not.

> 2) How would a typical browser understand it ? Would it just ignore it
> ?

It would treat it, literally, as part of the HTML content, and format and
display it accordingly.

> If the answer to (1) is "no": what would you suggest to do ?

Well, what problem are you trying to solve?

If you want to add Javascript to a web page, put it in the right way, just
like all other web pages do it.



--=_mimegpg-commodore.email-scan.com-25616-1115296622-0002
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCehNux9p3GYHlUOIRAj3hAJ4lxcyKqmg/JglKajx2wgf6pRWHGQCf ZGh9
TBq/1gR5PJGPicurno73yoE=
=kIPX
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-25616-1115296622-0002--