Hello,
I have stumbled upon a problem, for which I can’t seem to find a
solution for. I would like to offer files for downloading. To allow
files to have duplicate names I renamed as random alphanumeric-
strings. With the header command I can give them their “old name” back
just before downloading. Then use readfile or loop through feof/echo
fread to push the file’s contents. This works well.
The amount of files has increased, so that I am hosting them on a
separate box.
How do I push the files without:
a) installing a script on the separate box
and b) channeling the bandwidth through the server with the script?
I was hoping I could send a content-disposition-header command
followed by a location-header command, but that does not seem to work.
The location gets changed but the content-disposition info gets
ignored.
Does anyone have any ideas on this?
Thanks!
-Casper 3 2210
C. Feldmann wrote:
Hello,
I have stumbled upon a problem, for which I can’t seem to find a
solution for. I would like to offer files for downloading. To allow
files to have duplicate names I renamed as random alphanumeric-
strings. With the header command I can give them their “old name” back
just before downloading. Then use readfile or loop through feof/echo
fread to push the file’s contents. This works well.
The amount of files has increased, so that I am hosting them on a
separate box.
How do I push the files without:
a) installing a script on the separate box
and b) channeling the bandwidth through the server with the script?
I was hoping I could send a content-disposition-header command
followed by a location-header command, but that does not seem to work.
The location gets changed but the content-disposition info gets
ignored.
Does anyone have any ideas on this?
Thanks!
-Casper
You won't be able to serve the files from the other box directly without
a server installed, and probably some scripts. Then you can use the
Location header to redirect - although your user will also see the new
location.
Otherwise, you can fetch the files from the other server, i.e. with nfs,
and server them from your server.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
On Jul 9, 6:38*pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
C. Feldmann wrote:
Hello,
I have stumbled upon a problem, for which I can’t seem to find a
solution for. I would like to offer files for downloading. To allow
files to have duplicate names I renamed as random alphanumeric-
strings. With the header command I can give them their “old name” back
just before downloading. Then use readfile or loop through feof/echo
fread to push the file’s contents. This works well.
The amount of files has increased, so that I am hosting them on a
separate box.
How do I push the files without:
a) installing a script on the separate box
and b) channeling the bandwidth through the server with the script?
I was hoping I could send a content-disposition-header command
followed by a location-header command, but that does not seem to work.
The location gets changed but the content-disposition info gets
ignored.
Does anyone have any ideas on this?
Thanks!
-Casper
You won't be able to serve the files from the other box directly without
a server installed, and probably some scripts. *Then you can use the
Location header to redirect - although your user will also see the new
location.
Otherwise, you can fetch the files from the other server, i.e. with nfs,
and server them from your server.
(or http or....?)
C.
C. ( http://symcbean.blogspot.com/) wrote:
On Jul 9, 6:38 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>C. Feldmann wrote:
>>Hello, I have stumbled upon a problem, for which I can’t seem to find a solution for. I would like to offer files for downloading. To allow files to have duplicate names I renamed as random alphanumeric- strings. With the header command I can give them their “old name” back just before downloading. Then use readfile or loop through feof/echo fread to push the file’s contents. This works well. The amount of files has increased, so that I am hosting them on a separate box. How do I push the files without: a) installing a script on the separate box and b) channeling the bandwidth through the server with the script? I was hoping I could send a content-disposition-header command followed by a location-header command, but that does not seem to work. The location gets changed but the content-disposition info gets ignored. Does anyone have any ideas on this? Thanks! -Casper
You won't be able to serve the files from the other box directly without a server installed, and probably some scripts. Then you can use the Location header to redirect - although your user will also see the new location.
Otherwise, you can fetch the files from the other server, i.e. with nfs, and server them from your server.
(or http or....?)
C.
For http he would have to have a webserver going on the other system.
Which means he might as well just redirect and save the bandwidth.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== === This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
I created a page that will be doing image resizing and manipulation,
which seems to work (using GD library). However, upon returning to
the page where the image has been changed, I still see the old image,
until I refresh my browser and then zappo, there it is! All changed!
I have done everything I can think of to force caching including this:
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
by: george1069 george1069 |
last post by:
Hi,
I'm repeating <fo-table> using loop and there is <fo-table-header> to
generate a title for each of the table generated.
In one of the output pages, a new table is generated near to the bottom
area.
Howe only the table header is shown at the bottom and the body content
has splitted into the next page. It is because the remaining space is
only enough for the table-header but not the content.
|
by: Sam |
last post by:
I want to create header whereby I could reuse whenever new aspx.
However, it is display nothing and please find my coding:
index.aspx
==========
<%@ Page Language="VB" %>
<%@ Register TagPrefix="AJIMALERPFINANCE" TagName="Header" Src="header.ascx"
%>
|
by: xkeops |
last post by:
Thinking of creating a website, most of the pages will have a general
toolbar
menu, a content and a footer.
The content will be the only one who's gonna change but the rest
(header,footer)
will remain the same.
I am interested to know your opinions/suggestions in finding an easy
way of doing it.
In asp one could have something like this:
|
by: ~john |
last post by:
I'm trying to get my header to have 2 images, one for the top left and
one for the top right. Here's a link to my page...
http://levelwave.com/dev/div/index.html
and will eventually be images but what I'm
wanting is for the to be aligned left and to
be aligned right. As of now they're both squished to the left and I'm
not sure how to change my CSS to do this.
| |
by: KoosHopeloos |
last post by:
L.S.,
I'm trying to make a layout which is completely fixed in width and
height if needed by using three divs rows (header, content, footer)
which have each 3 div again to be able to play around better with the
webdesign.
The problem is that I need the content div row to nudge up
automatically to the header div row, independantly of the header
height. The same goes for the footer/content div row.
|
by: Shalako |
last post by:
I check my error log and see these entries:
malformed header from script. Bad header= Missing gauge reports are ind: padata.pl
/perl/pema/padata.pl did not send an HTTP header
malformed header from script. Bad header= : padata.pl
/perl/pema/padata.pl did not send an HTTP header
malformed header from script. Bad header= Missing gauge reports are ind: padata.pl
/perl/pema/padata.pl did not send an HTTP header
malformed...
|
by: herbivore |
last post by:
I am using curl to do a post request to a server. The request contains xml data, the standard post headers sent by curl do not work. I have tried using the custom_request option with the whole post request inside it, but then curl adds a header after the custom_request portion.
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header);
^^^ the above produces a correct request, except it adds an additional set of headers after it.
I have tried...
|
by: Bob Murdoch |
last post by:
I'm using the following to send a binary file to a user:
Response.AddHeader('Content-Disposition','attachment;filename=' +
Request('FileName') + ';');
var vType = 'application/octetstream';
var vFileName = String(Request('FileName')).toLowerCase();
if (vFileName.indexOf('.xls') -1)
vType = 'application/vnd.ms-excel';
if (vFileName.indexOf('.csv') -1)
|
by: urbanedge |
last post by:
I've just acquired a site and uploaded to godaddy and the email function won't work. I'm new to php and I'm not able to determine where the issue is. I've commented out $this->header .= $this->body; and I get a blank email to send. I've stripped down the body file but there still seems to be a problem. I'm not sure where to look now. This is the body file.
<?php
/******************** EMAIL ***************************/
$sRuta =...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |