HttpHandler and querystring (es. test.swf?var=1)

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Hello,
I wrote an httphandler for swf files to protect my content.
Everything works if the file is "test.swf" for example.
But if I have to pass an argument to the swf file (es. test.swf?var=1)
I get an exception in:
context.Response.WriteFile("test.swf?var=1");

with this code:

context.Response.Buffer = true;
context.Response.Clear();
context.Response.AddHeader("content-disposition", "attachement;
filename=x.swf");
context.Response.ContentType = "application/swf";
context.Response.WriteFile("test.swf?var=1");

How can I use httphandlers and pass arguments to swf?

Thanks!
Mattia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top