AOLserver Chat Logs

2008/01/10

IRC [00:05] *** holycow joined the chat.
IRC [01:15] *** holycow parted the chat.
IRC [11:30] *** ryan-g2 joined the chat.
IRC [11:30] <ryan-g2> I'm having trouble properly downloading a csv: http://pastebin.com/d302913ae
IRC [11:30] <partymola> let me see
IRC [11:31] <partymola> do you get some error?
IRC [11:31] <ryan-g2> no, just the data printed to the browser. I want a download prompt so I can open it in excel
IRC [11:32] <partymola> i think you're not putting the carriage returns at the end of each line
IRC [11:32] <ryan-g2> I added that just now
IRC [11:32] <partymola> ok
IRC [11:32] <ryan-g2> I just forget how to do the headers...
IRC [11:32] <partymola> oh, i see
IRC [11:32] <partymola> i do not know either, i am afraid
IRC [11:33] <partymola> i thought content-type is enough
IRC [11:33] <partymola> what problem are you getting?
IRC [11:33] <partymola> the browser shows the file and do not ask to download?
IRC [11:33] <ryan-g2> yes
IRC [11:33] <partymola> hmmmm
IRC [11:34] <ryan-g2> got it: ns_return
IRC [11:34] <ryan-g2> instead of ns_write
IRC [11:36] <partymola> oh, true
IRC [11:36] <partymola> and ns_returnfile for files
IRC [11:37] <ryan-g2> yes
IRC [11:37] <ryan-g2> here's the correct way, for your reference: http://pastebin.com/d50f81223
IRC [11:38] <partymola> oh, thanks
IRC [11:38] <partymola> so you removed the octet-stream header?
IRC [11:38] <partymola> why, return adds it automatically?
IRC [11:40] <ryan-g2> no I moved it since type is a parameter of ns_return
IRC [11:40] <ryan-g2> http://panoptic.com/wiki/aolserver/Ns_return
IRC [11:40] <partymola> oh, ok
IRC [11:40] <partymola> thank you very much :)
IRC [11:43] <ryan-g2> happy to share
IRC [11:48] <partymola> i am a little overloaded today... i am having stupid mistakes like overseeing things lol
IRC [11:48] <ryan-g2> I hear ya
IRC [11:49] <partymola> http://panoptic.com/wiki/aolserver/AOLserver_Cookbook#Return_a_file_generated_live
IRC [11:49] <partymola> if you want to change it... feel free ;)
IRC [11:59] <ryan-g2> no, looks good. anonymous enough
IRC [11:59] <ryan-g2> I also have code to download a file
IRC [12:14] *** holycow joined the chat.
IRC [12:21] *** ryan-g2 parted the chat.
IRC [16:23] *** holycow parted the chat.
IRC [16:32] *** holycow joined the chat.
IRC [20:19] *** holycow parted the chat.