-
I’m looking for a way to download or view documents in webview. I have successfully viewed PDF’s in the past using
-
Google’s online viewer but in this particular case it won’t work. Here’s my issue:
-
When the webview opens a link (say http://<mydomain.nl>/download.php?docid=2) it sends me the following headers.
Cache-Control:
private
2.
Connection:
Keep-Alive
3.
Content-disposition:
inline; filename=thedesireddoc.pdf
4.
Content-Encoding:
gzip
5.
Content-Length:
22728
6.
Content-Type:
application/pdf
7.
Date:
Fri, 11 Sep 2015 08:26:16 GMT
8.
Expires:
Mon, 26 Jul 1997 05:00:00 GMT
9.
Keep-Alive:
timeout=1, max=100
10.
Pragma:
private
11.
Server:
Apache/2
12.
Set-Cookie:
PHPSESSID=g7aassgtomgscg542afmkqq237; path=/
13.
Vary:
Accept-Encoding,User-Agent
14.
X-Powered-By:
PHP/5.3.29
15.
The webview does absolutely nothing and just fires the “link” and “loaded” events. No page is updated, no file is downloaded. Is there a way to support this?
FYI, I’m using daily build 2015.2702
Best regards,~Rob