Find Jobs
Hire Freelancers

PHP Script Or C# code to download files

$10-30 USD

Closed
Posted about 9 years ago

$10-30 USD

Paid on delivery
I need a C# or PHP developer for a small piece of code Short description: I need a a piece of code that downloads a file from a remote link in the web and return the bytes to the client. Long description: I need a piece of code that will read the parameter "download_url", and go to this download_url parameter and download the bytes from it and then return it back to the client via response. Think about it as if my code is in the middle between the server that has the file and the client who wants to download the file. THE SCRIPT MUST ALLOW: 1- downloads to be resumed at any time by adding the proper headers. 2- script to use a proxy while creating the request. Process should go like this 1- user will go to [login to view URL]?download_url=[login to view URL] 2- code will check if a proxy is set 3- code will check if client only requested range of bytes (RESUME DOWNLOAD Request) 4- code will create a request to [login to view URL] 5- add a proxy to the request if proxy settings are set 6- only download range of bytes (PLEASE REFER TO STEP 3) 7- download bytes and flush it in the response to the client 8- close the connection at the end Tips: * response StatusCode has to be 206 * consider the headers: Ranges, Accept-Ranges and Content-Range The code can be written in C# or PHP. it doesn't matter but i would prefer C# though. I have attached an image and a C# code that i wrote. i hope you find these attached files helpful.
Project ID: 7639417

About the project

4 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $73 USD for this job
User Avatar
Hi, If the client only requests a range of bytes then his final file will be broken, ie. where the script runs we can add those bytes to the already existing file so that the final file remains intact, however the client will most likely save the new range of bytes to a new file which will break the original download file. Were you aware of this and are you ok with it ?
$80 USD in 1 day
5.0 (6 reviews)
3.5
3.5
User Avatar
As description in your requirement. I'm sure to complete this tool for you. inbox me if you have any question about my skill or this project. Thank for your attention HuyPQ.
$111 USD in 3 days
5.0 (5 reviews)
2.9
2.9
User Avatar
i am working in a software organization for more than 5 years as senior developer (C# and ASP.net) and i am doing this type of small application for several clients in country and on freelancer. furthermore, i develop ERP based application and web application for different field clients in our country. i hope you will assign this task to me.
$75 USD in 3 days
4.8 (1 review)
1.8
1.8
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Duluth, United States
0.0
0
Payment method verified
Member since Oct 21, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.