[x-posted here and there]
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
<javascript data>
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
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
<javascript data>
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
Comment