http

Ruby on Rails question - how can I measure response time from when request first hits app?? (e.g. using 'benchmark')

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...

How to set request propert while making http connection?

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("...

haskell chuncked http reading

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

How to open a webpage and search for a word in python? ...

Can i create a custom HTTP protocol in Delphi ?

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/...

how can I use multiple Players in J2ME to simulate streaming over Http

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 ...

HTTP Caching Testing

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 ...

Apache comes back with nothing

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 ...

Is there an open source (read free) tool that allows me to see my browser's HTTP commands?

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? ...

PHP CURL: Manually setting the content-length header

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...

Post Uploaded file to another PHP page?

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...

HTTP Cache - check with the server, always sending If-Modified-Since

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...

URL shortening: redirection to a 'file://' target (file protocol target)

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). ...

Sometimes HttpURLConnection.getInputStream executes too slowly

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?

What does the HTTP header Pragma: Public mean? ...

File upload limit in HTTP

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... ...

What are the ramifications of null bytes and multipart/form-data?

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...

Strategies for dealing with URIs when building an application that sits behind a reverse proxy

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...

How to make the http connection timeout/disconnected after a time interval??

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...

Iphone http streaming video problem

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 ...