Date: Mon, 27 Nov 2000 20:41:55 +0800 From: "Craig Beasland" <craig@hotmix.com.au> To: <questions@freebsd.org> Subject: OT Perl question Message-ID: <B1471D5DCC74D4119444004005E23A2001CF0E@CORONA>
index | next in thread | raw e-mail
Hi there,
I am trying to build a Netscape Client Kit and have 1 final problem. You
take all the data from the user and write a perl script which passes it back
to the Netsape program. I am not sure of how to begin with the perl script.
Is there anyone out there who can help.
The instructions from Netscape are as follows...
=======
The binary file format used by this MIME type is simple, yet extensible. It
consists of consecutive name/value pairs separated by 4 bytes of size
information:
| 4 bytes | ------ x bytes ------ | 4 bytes | ------ y bytes ------ | (x)
(name) (y) (value)
The parser iterates as follows until it reaches the end of the stream:
Read 4 bytes of binary data and cast to int for size of Name in bytes
(x)
Read (x) bytes of ASCII data for the name
Read 4 bytes of binary data and cast to int for size of Value in bytes
(y)
Read (y) bytes of ASCII data for the value
================
cheers craig
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1471D5DCC74D4119444004005E23A2001CF0E>
