Calling CGI-C experts / web experts Chalanachithram.com | Topics | Search
Hide Clipart | Log Out | Register | Edit Profile

Last 30 mins | 1 | 2 | 4 hours     Last 1 | 7 Days

Chalanachithram.com DB » New TF Industry Related » Archive through January 29, 2014 » Calling CGI-C experts / web experts « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Saint
Megastar
Username: Saint

Post Number: 26520
Registered: 01-2011
Posted From: 12.22.163.132

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, January 28, 2014 - 05:20 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Gotcha:




same to same code... but I want that to open in a file name as specified in content-disposition

but..aa content-disposition line motham csv file lo first line lekka vasthundi
Top of pagePrevious messageNext messageBottom of page Link to this message

Gotcha
Hero
Username: Gotcha

Post Number: 14106
Registered: 02-2008
Posted From: 8.19.193.14

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, January 28, 2014 - 05:10 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

can you use basic request, response methods of HTTP in CGI. something like this?

string ContentType = "Application/octet-stream";
Response.Clear();
Response.ContentType = ContentType ;
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fs.Name + "\"") ;
Response.AddHeader("Content-Length", fs.Length.ToString());
Response.WriteFile(Filename);
Response.Flush();
Response.End();
This Andhra real estate is for sale.
Top of pagePrevious messageNext messageBottom of page Link to this message

Saint
Megastar
Username: Saint

Post Number: 26518
Registered: 01-2011
Posted From: 12.22.163.132

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, January 28, 2014 - 05:00 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

ee DB lo evavru lera?
Top of pagePrevious messageNext messageBottom of page Link to this message

Saint
Megastar
Username: Saint

Post Number: 26513
Registered: 01-2011
Posted From: 12.22.163.132

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, January 28, 2014 - 04:44 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

nenu oka cgi program calling sethe adi DB lokelli data ni techi csv format lo file lekka open jeyyale web lo

issue : I want to specify the filename dynamically...means I want to pass the filename to the browser whenever the program runs...

so I am using Content-Disposition to set(pass) the filename to the browser... but it doesnt work...

ee content-disposition csv file lo first line lekka vasthundi....

etla fix jeyyale..jeldi seppandi

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x98b14e0){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: