spadged / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Error when URL already has parameters #261

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pdf.save( Method.REMOTE, 
"http://www.mysite.com/servlet/Controller?mycontroller", _reportTitle + ".pdf" 
);
2.
3.

What is the expected output? What do you see instead?
I would expect to be able to have existing parameters and AlivePDF when I save 
remote.  In my case I have a servlet implementation that needs the servlet name 
parameter.  When I save I get a url something like

http://www.mysite.com/servlet/Controller?mycontroller?name=thisName&method=someM
ethod

What version of the product are you using? On what operating system?
1.4.9

Please provide any additional information below.
I see the following line in PDF.as as line 3136
var myRequest:URLRequest = new URLRequest 
(url+'?name='+fileName+'&method='+downloadMethod );

This does not work for me since I have an existing URL parameter.  Is there any 
way this can be changed to see if url already contains "?"?

Original issue reported on code.google.com by spra...@gmail.com on 19 Jul 2010 at 3:08