Post Reply 
Help with proxy
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #5
RE: Help with proxy
So it's a HTTP proxy which appears to be checking both the Content-Length and Content-Range headers.

Free?  Yes, you can sign up to free webhosting services which give about 200MB (or more) free storage.  Use PHP scripts to grab and save the files, then use scripts to split up the file.
Alternatively, you could write up a proxy script which splits on the fly.


EDIT:
Or, if it is indeed relying on the Content-Length header to be accurate, write a proxy, and don't send the Content-Length header (this will cause your browser to not know the size of the file, so you won't get a download progress bar)
[afterthought: not a bad idea :P]

EDIT 2:
You can try this one if you want (I haven't tried it yet):

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

$file = $_GET['f'];
if(!$file) die('You must specify an URL to retrieve');
$fname = substr($file, strrpos($file, '/')+1);
$fp = fopen($_GET['f'], 'rb');
if(!$fp) die('Couldn\'t retrieve remote file.');

header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$fname.'"');
fpassthru($fp);

fclose($fp);

?>

Save the file as p.php, upload it to a free PHP hosting service (ie FreeHostia) and access the page via something like this:

Code:
http://someplace/p.php?f=http://target/link

(This post was last modified: 06/07/2008 05:00 AM by ZiNgA BuRgA.)
06/07/2008 04:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Help with proxy - bboy_sonik - 06/07/2008, 01:56 AM
RE: Help with proxy - Slushba132 - 06/07/2008, 02:07 AM
RE: Help with proxy - ZiNgA BuRgA - 06/07/2008, 02:41 AM
RE: Help with proxy - bboy_sonik - 06/07/2008, 03:41 AM
RE: Help with proxy - ZiNgA BuRgA - 06/07/2008 04:53 AM
RE: Help with proxy - bboy_sonik - 06/07/2008, 10:41 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: