Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Call Vaadin 7 app via curl problem
Hi!
I have a Vaadin 6 application, which job is to create a PDF file. I call it via curl() in php:
$ch = curl_init("https://www.domain.com/cpdf/?par1=1&par2=2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: multipart/form-data"));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HEADER, false);
$res = curl_exec($ch);
curl_close($ch);
It works fine when the app was in Vaadin 6. Since I updated it to Vaadin 7 it doesn’t work.
What is the problem? How can I call the Vaadin 7 version via curl()?
Michael Tzukanov: So what is the result of the call?
With Vaadin 6 version: The PDF is generated (Jasper)
With Vaadin 7 version: Nothing happens, it stops.
I think the problem is, that in Vaadin 7 a JavaScript starts the application, and the Curl can"t run it.
This can be find in the FireBug: vaadin.initApplication("cpdf-1213628635",{
Is there solution to this or I have to use the Vaadin 6 to this?