Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Http file download question
Re: Http file download question [message #36524 is a reply to message #36518] Mon, 04 June 2012 22:08 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

it exact what I expected.

Try this link. it is dirrect link.

Ok.
1. When you open the link a JavaScript event On page load is attached.
2. After the time is elapsed, dynamically is created an hidden control (frame with link... or can be something elese. it less important) and it is fired.
3. It open the link: it open the link: http://downloads.sourceforge.net/project/upp/upp/4179/upp-x1 1-src-4179.tar.gz?r=http%3A%2F%2Fwww.ultimatepp.org%2Fforum% 2Findex.php%3Ft%3Dmsg%26th%3D6738%26start%3D0%26&ts=1338 838532&use_mirror=switch
with header:
Request URL:http://downloads.sourceforge.net/project/upp/upp/4179/upp-x11-src-4179.tar.gz?r=http%3A%2F%2Fwww.ultimatepp.org%2Fforum%2Findex.php%3Ft%3Dmsg%26th%3D6738%26start%3D0%26&ts=1338838532&use_mirror=switch
Request Method:GET
Status Code:302 Found
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,ru;q=0.6,en-GB;q=0.4
Connection:keep-alive
Cookie:__utmx=191645736.00024592574091748957:1:1; __utmxx=191645736.00024592574091748957:1338838533:2592000; __utma=191645736.866235001.1338670652.1338810779.1338838044.5; __utmb=191645736.8.9.1338838539021; __utmc=191645736; __utmz=191645736.1338838044.5.5.utmcsr=ultimatepp.org|utmccn=(referral)|utmcmd=referral|utmcct=/forum/index.php; __utmv=191645736.|5=AB%20Test=4091748957%3A1=1
Host:downloads.sourceforge.net
Referer:http://sourceforge.net/projects/upp/files/upp/4179/upp-x11-src-4179.tar.gz/download?use_mirror=switch
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5
Query String Parametersview URL encoded
r:http://www.ultimatepp.org/forum/index.php?t=msg&th=6738&start=0&
ts:1338838532
use_mirror:switch
Response Headersview source
Access-Control-Allow-Origin:*
Content-Disposition:attachment; filename="upp-x11-src-4179.tar.gz"
Content-Length:0
Content-type:text/html
Date:Mon, 04 Jun 2012 19:35:39 GMT
Location:http://switch.dl.sourceforge.net/project/upp/upp/4179/upp-x11-src-4179.tar.gz
Server:lighttpd/1.4.26
Set-cookie:sf_mirror_attempt=upp:switch:/upp/upp/4179/upp-x11-src-4179.tar.gz; expires=Mon, 4-Jun-2012 19:37:39 GMT; Path=/

4. browser redirects to the advised link: http://switch.dl.sourceforge.net/project/upp/upp/4179/upp-x1 1-src-4179.tar.gz
with header:
Request URL:http://switch.dl.sourceforge.net/project/upp/upp/4179/upp-x11-src-4179.tar.gz
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,ru;q=0.6,en-GB;q=0.4
Connection:keep-alive
Cookie:__utmx=191645736.00024592574091748957:1:1; __utmxx=191645736.00024592574091748957:1338838533:2592000; __utma=191645736.866235001.1338670652.1338810779.1338838044.5; __utmb=191645736.8.9.1338838539021; __utmc=191645736; __utmz=191645736.1338838044.5.5.utmcsr=ultimatepp.org|utmccn=(referral)|utmcmd=referral|utmcct=/forum/index.php; __utmv=191645736.|5=AB%20Test=4091748957%3A1=1
Host:switch.dl.sourceforge.net
Referer:http://sourceforge.net/projects/upp/files/upp/4179/upp-x11-src-4179.tar.gz/download?use_mirror=switch
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5
Response Headersview source
Accept-Ranges:bytes
Connection:Keep-Alive
Content-Length:38392395
Content-Type:application/x-gzip
Date:Mon, 04 Jun 2012 19:35:39 GMT
ETag:"1e99f7-249d24b-4b20c1b1bc8c0"
Keep-Alive:timeout=15, max=100
Last-Modified:Sat, 19 Nov 2011 01:09:31 GMT
Server:Apache/2.2.16 (Debian)


be careful to the response
Content-Disposition:attachment; filename="upp-x11-src-4179.tar.gz"


this tag server tells to browser that this should be downloaded.

Hope if helped you.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Set thread priority for linux
Next Topic: [Solved]Can't show favicon.ico in Skylark if root path is not Null
Goto Forum:
  


Current Time: Tue May 14 03:45:19 CEST 2024

Total time taken to generate the page: 0.02805 seconds