Hi,
Background - I'm serving files (text, images) to a browser via my Rails application as the user needs to be authenticated too. The files are on file system, however references are in the database, as I'm using PAPERCLIP. Using AUTHLOGIC for authentication. I'm finding the response times are quite bad, as each request for HTML/ima...
Hi All,
i am making http connection using
URL urlToConnect = new URL ("http://www.xyz.com");
HttpURLConnection connection = ( HttpURLConnection ) urlToConnect.openConnection();
I need to set the following property ,i am doing it like
connection.setRequestMethod("POST");
connection.setDoOutput(true);
connection.setRequestProperty("...
Here's the next practical question.
I want to download some big files from http server(database updates). This operation should block user UI, preventing him from inputting data. SO the problem is to show user progress bar, which will tell him how much is it still to wait.
In python, request objects open file-like object. I have read i...
How to open a webpage and search for a word in python?
...
I build a project using Flash and Delphi. In Flash i need communication with delphi. Current i use ExternalInterface and FSCommand. Now i need Flash communication with Delphi via HTTP but it need open a custom port on Delphi and it can prevent by user's firewall. I see a product called F-IN-BOX it can implement HTTP link like http://FLV/...
I need to connect to a http server from a phone and play a movie while downloading. I understand that you can simulate this using multiple players (Manager.createPlayer(...)) in J2ME but I dont know how.
Thanks
...
I have a proxying system that needs to understand the HTTP Cache-Control headers. The intent is not to perform any actual caching, but to derive tuning information based on the caching characteristics of sets of HTTP requests. I'm looking for a way to test the system.
I can do spot checking by pushing content from well-known websites ...
Hello -
I'm running Apache 2.046 with PHP 5.x and I am experiencing very odd behavior on a CodeIgniter app.
The frustrating thing is that it is not consistent.
Occasionally when I call up my app Apache returns nothing. I mean nada. But then I hit refresh and everything works as expected. Sometimes I have to hit "refreash" several ...
I am getting into HTTP protocol specifics and I would like to see/understand the calls my browser makes as it is being used. I use Firebug (with Firefox) to look at/debug AJAX interactions, etc, but don't see the full HTTP conversation.
Is there something similar for viewing HTTP commands issued by a browser?
...
Say I upload a file with PHP, CURL:
$postData = array();
$postData['file_name'] = "test.txt";
$postData['submit'] = "UPLOAD";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1 );
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData );
Now assume I have to...
Hello,
Here is my problem. I have a ticket-tracking system that is not very 'user friendly' but I have a desire for my users to submit 'tickets' to the system without having them to see it.
I got as far as just using a custom HTTP Form and posting to the ticket tracking system. One problem is the 'success/completion' page has a tende...
I have a resource which is user generated and therefore changes at an unpredictable time (example, a user uploads a new version of a word document). I would like browsers to cache this resource and validate its cache with the server on each request (i.e. always send the If-Modified-Since header).
From testing, I've found that Firefox h...
Hi,
I am trying out a simple implementation of a URL shortener such as tinyurl.com or bit.ly. Currently I do a response.sendRedirect(targetURL) in my servlet - which works fine for http/ftp target URLs.
However, I'm having problems redirecting to targets such as file:///c:/temp (where c:\temp is of course on the local/client system).
...
We have next code.
Sometimes we should wait 10-20-40 seconds on the last line.
What can be the problem?
Java 1.4
URL url = ...;
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.connect();
OutputStream out = conn.getOutputStream();
ObjectOu...
What does the HTTP header Pragma: Public mean?
...
Is there any limit theoretically on the size of file that can be uploaded by a client using the browser's file upload using HTML form?
I am posing this because Flash has a drawback where the largest file size you can upload is lesser than the size of available RAM. I am wondering if there is any such restrictions with the browsers...
...
A third party is sending us a flat file that is supposed to contain exclusively printable ASCII characters. However, we've discovered that there's a string of about 50 0x00 bytes in the middle of the file.
We want to be able to upload the file to our web application, but I've discovered that Django doesn't seem to like the null chara...
I'm building an application with a self-contained HTTP server which can be either accessed directly, or put behind a reverse proxy (like Apache mod_proxy).
So, let's say my application is running on port 8080 and you set up your Apache like this:
ProxyPass /myapp http://localhost:8080
ProxyPassReverse /myapp http://localhost:8080
Th...
hi
I am new in apache HttpClient, I used the following code to get the http connection timeout (disconnected) after certain time interval:
PostMethod method = new PostMethod(authURL);
HttpClient client = new HttpClient();
HttpClientParams params= new HttpClientParams();
params.setParameter(params.CONNECTION_MANAGER_TIMEOUT, 10); //10 N...
Hi everyone
When our application play new url of http streaming video , mpmovieplayer show previous image of video during loading new video from new url .
In detail , it show last part of previous video then show first part of previous that video again ( all captured image ) then it plays new url http streaming .
We need your advice ...