http

How to get the response stream on a non 201 status code

I'm having some problem's grabbing a response stream from a request that returning status code 422. HttpWebResponse objResponse = (HttpWebResponse)wr.GetResponse(); The wr.GetResponse throws an webexception because the status code isnt 201. So i can never get the response stream from the remote server. But it does return important inf...

Add missing final boundary of HTTP request with Apache / PHP?

Hello, I receive HTTP Post requests from an application, which is already deployed on mobile phones. This application worked fine the last months, but now PHP started complaining with respect to a POST file upload: UPLOAD_ERR_PARTIAL via HTTP 1.0 and PHP5. (After a crash the server had been set up again with new Apache and PHP versions,...

Request-URI Too Large window.open - workaround

Hello All: I am opening a window and passing set of parameters to it. In this case, I am sending json string. At time, the info is toolarge, and Request-URI Too Large occurs. window.open('../pssops21/php/createPhonePdf.php?strSelectedItems=' + strSelectedItems + '&strQBNumbers=' + arrQBNumbers, 'mywindow', 'resizable=1, scro...

How can I check if an Image exists at http://someurl/myimage.jpg in C#/ASP.NET

How can I check if an Image exists at http://someurl/myimage.jpg in C#/ASP.NET It seems like there ought to be a method to check for this -- but I cannot find one. I found this, but it doesn't really answer the question. ...

Cross-browser upload big files over HTTP (partly)?

I need to upload big files over http without affecting IIS timeout (using multiple independent requests). Should I use any plug-ins or it is possible with javascript? ...

file download time log

Is there any way to log (record) the time it takes to download a file from a web server via the browser? The file is written on the HDD and the environment is LAMP. Thanks. ...

Return 307 Temporary Redirect in ASP.NET MVC

Is it possible to return a 307 Temporary Redirect from a controller in ASP.NET MVC? I sometimes need to re-POST the values submitted from one form to another URI. Using JavaScript to do the selection on the client side (thereby bypassing this issue) is not an option. Redirecting via a GET is not an option as posted data includes an 8k...

following a log file over http

For security reasons (I'm a developer) I do not have command line access to our Production servers where log files are written. I can, however access those log files over HTTP. Is there a utility in the manner of "tail -f" that can "follow" a plain text file using only HTTP? ...

video recording from web browser

Hi there, i have asked to create a module that will record video messages form the web browser it self. what technologies, i should look at. and how should i start. please give me some pointers. A sample code will be appreciated. :) ...

long running http connection never gets response back

I am making an http request which ends up taking more than 8 mins. For me, this long running request work fine. I am able to get a response back to my browser without any issues. (I am located on the same network as the server). However, for some users, the browser never returns any response. (Note: When the same http request executes i...

Capture IE resource requests

I am trying to create a custom HTTP request/response logger for Internet Explorer. In my application I have an embedded browser object. I have a pointer to IWebBrowser2 interface. This interface has BeforeNavigate2() and DocumentComplete() methods that get invoked only for base page requests. However those methods don’t get invoked fo...

What happens to an http Request when the user leaves page in the meantime?

I'd like to keep some information on the client which element was clicked and thus save the information within a cookie, but it's a third party cookie because I need this information on antoher page (affiliate-tracking is the context) so I'd have to set it via http request as far as I see it. Javascript would only allow me to place a wit...

Firefox plugin or way to monitor ALL request data, including headers and content downloaded to browser

I am having problems getting ALL of the information that is downloaded to a browser. For example, I want a plugin, ideally a firefox plugin to download the HTML content and monitor when I get a 302 redirect, and all header information. So far, use Live HTTP Headers and Firebug. Both are fine. With Live HTTP headers, I can't monitor ...

Access-Control-Allow-Origin Multiple Origin Domains?

Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header? I'm aware of the *, but it is too open. I really want to allow just a couple domains. As an example, something like this: Access-Control-Allow-Origin: http://domain1.com, http://domain2.com I have tried the above code but it doesn't seem to ...

Ext JsonStore doing a POST even if I set it to GET

I have a jsonstore that is supposed to load a user's information. I have its HTTPRequest as a GET but when I finally do load up the store with parameters, it automatically changes to a POST request. I've done something similar to this before, except it was a regular datastore, and the request stayed as a GET. Is the default behavior...

How can I prevent user-agents from presenting a download window for unrecognized mime types?

If you set the Content-Disposition header to attachment, this causes user-agents to always present a download window for that file. I would like to do this opposite of this: force user-agents to always display the response directly. In this particular case, I have an API that's sending JSON. I'd like to serve it as application/json as...

Download manager in Java

I need to several some huge files (several gigs) from Java via FTP/HTTP. Is there a ready library (java / command line tool) to facilitate the download? Some obvious requirements are: Multi-connection download - should be able to open several connections to the server to accelerate the download (like FlashGet/GetRight/...) Resume a dow...

Using PHP cURL with an HTTP Debugging Proxy

I'm using the app "Fiddler" to debug a GET attempt to a website via PHP cURL. In order to see the cURL traffic I had to specify that the cURL connection use the Fiddler proxy (see code below). $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888'); curl_setopt($ch, CURLOPT_...

HTTP/1.1 401 Token invalid - AuthSub token has wrong scope

I get this error when trying to get a feed from Google Analytics API. However, using the same token I get successful feeds from Google Calendar. The code between the two is exactly the same except for the feed url. So it must have something to do with Analytics being https and Calendar just http. I have successfully created a non-s...

How to keep original parameters after url_rewrite?

I'm now doing this: rewriterule ^jobs/([0-9]+)/.* job.php?id=$1 Which will erase parameters in jobs/1010/title?k=v How to keep them? ...