Search the web
Sign In
New User? Sign Up
vmu-dev · The VMU Development list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
cgi script   Message List  
Reply | Forward Message #597 of 1156 |
Hi,

a cgi script that returns the correct mime type would look like this:
This is from a perl script I have somewhere:

# VMI file
# this MUST BE the FIRST line the cgi-script returns! Make sure
# you append two \n at the end, dump the binary data of the VMI
# thereafter
print "Content-type: application/x-dreamcast-vms-info\n\n";

# VMS file
# this MUST BE the FIRST line the cgi-script returns! Make sure
# you append two \n at the end, dump the binary data of the VMI
# thereafter
print "Content-type: application/x-dreamcast-vms\n\n";

to dump the file in binary you may use something like this in perl:

open(FILE, "foo.vmi");
binmode(FILE); undef $/; # output binary and no line separator
print <FILE>;
close(<FILE>);

I am not sure the code above works but I wanted to give a hint.

Leo.

--
http://www.mud.de




Thu Oct 19, 2000 4:25 pm

leo@...
Send Email Send Email

Forward
Message #597 of 1156 |
Expand Messages Author Sort by Date

Hi, a cgi script that returns the correct mime type would look like this: This is from a perl script I have somewhere: # VMI file # this MUST BE the FIRST line...
leo@...
Send Email
Oct 19, 2000
4:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help