- Home /
OpenURL passing POST variables?
I'm currently developing a webGL unity application that automatically generates a pdf via backend. I'm using fpdf PHP libraries and this is working fine. The issue here is that the pdf generated is kinda sigilous and cant be stored in my server. I'm currently doing this and works fine, but the file has to be saved on the server at least for a couple seconds, which I dislike. - the user click submit button on the browser (remember, it is a webgl application). That button is a simple UI button that starts a coroutine and send _POST variables to the php backend scripts; - the php script promptly generates a pdf and, when it finishes, echoes a trigger which is used on unity to, finally, open the URL of this saved file; - the saved pdf is opened in another tab via JS plugins and then is deleted (unlinked) from the server.
It works fine. The user can download the pdf normally. The issue here is because the pdf is saved on the server for a couple of seconds, enough for the browser to open it. All that because I can't directly pass _POST variables when opening a URL - because, if so, the pdf is automatically generated and displayed in the browser in a local path, not in the server.
TL;DR: can I use the Application.OpenURL("htt´://desiredURL.com") WHILE SIMUTANEOUSLY passing _POST variables via form?
I have plenty of experience using unity but can't figure this out.
Your answer
Follow this Question
Related Questions
system login and registration unity 0 Answers
After updating to v2017.1, a www call returns "406 not acceptable" 2 Answers
realtime PHP? 0 Answers
How to make my Login System networkable? 0 Answers
Unity networking tutorial? 6 Answers