Hello all,
Today I have noticed that Variable Star Plotter API is returning same image and completly ingnoring "printable" parameter.
Example request:
http://www.aavso.org/cgi-bin/vsp.pl?name=ss+cyg&forcelines=on&fov=60&printable=no
http://www.aavso.org/cgi-bin/vsp.pl?name=ss+cyg&forcelines=on&fov=60&printable=yes
Those two request are returning same image of selected FOV, while first one should return 75dpi and second one 150dpi version of image. Also, sending request to:
http://www.aavso.org/vsp/chart?name=ss+cyg&forcelines=on&fov=60&printable=yes
Returns broken page. I guess that png image is injected into HTML and not returned for itself.
Regards,
Dario
Hi,
If you add a resolution query string attribute then things should work:
http://www.aavso.org/cgi-bin/vsp.pl?name=ss+cyg&forcelines=on&fov=60&pr…;resolution=150
Thank you for workaround. :) It will be very helpful to display higher resolution charts in software.
So, problem is easily solvable, but I think that documentation should describe that parameter. Also, documentation part which says: "If yes is specified, it will have a resolution of 150dpi and the header and footer HTML code will not be displayed." should be edited or API itself should be fixed.