How would I only allow users authenticated via Python code to access certain files on the server?
For instance, say I have /static/book.txt which I want to protect. When a user accesses /some/path/that/validates/him, a Python script deems him worthy of accessing /static/book.txt and redirects him to that path.
How would I stop users wh...
I am doing some work on a web site that has a secure area which is available to users only after they have logged in. In this area there is a page with links to pdf documents which can be downloaded. The physical documents are outside of the web site's root directory. The links to the pdf documents look something like this:
index.php?pa...
We have a large Java application that run as applet or Java Web Start. And it grow more and more. Typical a user need only a small part of the classes. Because Java does not know which class can it found in which jar file that it load all jar files until it find the class. If it will load a class that not exist (for example a resource bu...
Hello folks,
Would someone please tell me specifically where can I download Oracle Directory Manager component? I know it's in one of the Oracle 10g discs but which one? Database, Client or Companion CD..
Please advice
...
Hello,
Is there a way to check how much a flash file is (down)loaded to the page before it is shown?
Our team cant put loading indicator inside the flash file because the swf file is uploaded by our client. Is there some kind of property on xmlhttprequest that we can use to indicate how much has been downloaded?
Or any other suggestion t...
So I wrote this short script (correct word?) to download the comic images from explosm.net comics because I somewhat-recently found out about it and I want to...put it on my iPhone...3G.
It works fine and all. urllib2 for getting webpage html and urllib for image.retrieve()
Why I posted this on SO: how do I optimize this code? Would RE...
Hi there,
I'm trying to craete a site which allows users to upload any file type they like. I've implemented this feature fine, and the file is held on the server. Later on they can download the file to view, but i'm having trouble getting it to work.
I've used any examples I can get hold of but they all tend to use text files as examp...
Anyone successfully using this in c# or is there a better alternative to this? Also any good working project that I can look at and get a good feel? most projects i have come across is in C++ and was looking for a C# project
...
I am going offline for a few days, and would like to bring the javascript documentation with me on my laptop :)
Does anyone know of a place where I can get downloadable reference documentation for javascript, preferably for firefox?
I have cheked the mozilla site, but have only been able to find an online version.
Thanks, Jonas
...
How do i Download Web Page using C (not with libcurl), OS: Win32
Duplicate of Fetch Web Page in C [closed] and How to fetch HTML in C/C++.
...
In our current project we are providing a PDF download that can be customized by the user through an HTML form he submits. It takes several seconds to dynamically generate the PDF and I'd like to visualize this, e.g. by disabling the submit button until the download starts. Unfortunately, I couldn't find a way to detect when the download...
Hi,
Pardon the dumb newbie question here; web programming isn't my forte... (blush)
I have an aspx page running on a web server. I have a blob (byte array) containing any kind of binary file, plus a file name.
I would like to push this file to be downloaded through the browser onto the client, and opened using whatever application is...
When I download a file using URLStream and write to a file using FileStream, where else do the file gets cached? It definitely gets cached somewhere, as the second time I try to download the same file, it comes down like a lighting..
...
Hi everyone,
I'd like to create a script in PHP that can be run through a cron job. This script has to do the following:
A) Log in to Yahoo Webmail
B) Navigate to the inbox
C) Loop through all mails with attachments
D) Download each attachment *
E) Put the downloaded attachment into a directory on the server
*: When viewing a mail...
Quick (and hopefully easy) question: I need to trigger a download of a PDF file that's generated by a PHP file. I can do this:
<a href="download.php">Download</a>
but should I be doing this another way? Javascript maybe? The above works but the window shows "Loading..." until the download starts. I'd like to provide some feedback ...
I'm using urllib.urlretrieve to download a file, and implementing a download progress bar using the reporthook parameter. Since urlretrieve doesn't directly support authentication, I came up with
import urllib
def urlretrieve_with_basic_auth(url, filename=None, reporthook=None, data=None,
username="", p...
Hello all,
There is a data file and some image files that I have to download to our local servers every night using asp.net. What is the best way to do this?
UPDATE
Ok, after viewing the responses I see my initial post of using asp.net is a poor choice. How would you write it for a console app in C#. I am not sure what classes I am us...
Hi,
I want to provide dynamic download of files. These files can be generated on-the-fly on serverside so they are represented as byte[] and do not exist on disk. I want the user to fill in an ASP.NET form, hit the download button and return the file he/she wanted.
Here is how my code behind the ASP.NET form looks like:
public partial...
Is there a Firefox plugin available that will simulate various connection speeds (especially when testing from http://localhost)?
I know there are standalone applications to do it, but I'd rather have a plugin.
Thanks
Edit: Thanks to @UselessAdmin - FirefoxThrottle has now been updated to work on localhost!
...
Hello,
I am using C# and a console app and I am using this script to download files from a remote server. There area a couple of things I want to add. First, when it writes to a file, it doesn't take into consideration a newline. This seems to run a certain amount of bytes and then goes to a newline. I would like it to keep the same for...