Project

General

Profile

Feature #1285

Molnet: Tvinga inte nedladdning av filer

Added by Martin Bagge - brother almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
2014-07-22
Due date:
% Done:

0%


Description

Fillänkar tvingar fram nedladdning, det är lite synd.

brother ~$ curl -vv "https://molnet.bthstudent.se/data/public/f8ffda.php?lang=en&dl=true" > apa
* Hostname was NOT found in DNS cache
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 193.11.190.199...
* Connected to molnet.bthstudent.se (193.11.190.199) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
* SSLv3, TLS handshake, CERT (11):
{ [data not shown]
* SSLv3, TLS handshake, Server key exchange (12):
{ [data not shown]
* SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
* SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Finished (20):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
* SSLv3, TLS handshake, Finished (20):
{ [data not shown]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
*      subject: serialNumber=Wmc3vYwGU3BQGVD2uypYvqwy3uzfxOQQ; OU=GT14712405; OU=See www.rapidssl.com/resources/cps (c)14; OU=Domain Control Validated - RapidSSL(R); CN=*.bthstudent.se
*      start date: 2014-02-18 11:16:59 GMT
*      expire date: 2015-02-22 00:52:51 GMT
*      subjectAltName: molnet.bthstudent.se matched
*      issuer: C=US; O=GeoTrust, Inc.; CN=RapidSSL CA
*      SSL certificate verify ok.
> GET /data/public/f8ffda.php?lang=en&dl=true HTTP/1.1
> User-Agent: curl/7.37.0
> Host: molnet.bthstudent.se
> Accept: */*
> 
< HTTP/1.1 200 OK
* Server nginx/1.2.1 is not blacklisted
< Server: nginx/1.2.1
< Date: Tue, 22 Jul 2014 13:50:08 GMT
< Content-Type: application/force-download; name="Karlshamn_NollePress2014.pdf" 
< Content-Length: 6440104
< Connection: keep-alive
< X-Powered-By: PHP/5.4.4-14+deb7u12
< Accept-Ranges: 0-6440104
< Content-Transfer-Encoding: binary
< Content-Range: bytes 0-6440103/6440104;
< Content-Disposition: attachment; filename="Karlshamn_NollePress2014.pdf" 
< Expires: 0
< Cache-Control: no-cache, must-revalidate
< Pragma: no-cache
< 
{ [data not shown]
100 6289k  100 6289k    0     0  2044k      0  0:00:03  0:00:03 --:--:-- 2045k
* Connection #0 to host molnet.bthstudent.se left intact

Det som ställer till det är raden:
< Content-Type: application/force-download; name="Karlshamn_NollePress2014.pdf"
Webbläsaren själv kan bestämma det där.

Also available in: Atom PDF