http

How can I determine if a URL redirects?

If I have a URL (eg. http://www.foo.com/alink.pl?page=2), I want to determine if I am being redirected to another link. I'd also like to know the final URL (eg. http://www.foo.com/other_link.pl). Finally, I want to be able to do this in Perl and Groovy. ...

How to send array throught HTTPservice in Adobe Flex 3

How to send array in Httpservice in Adobe Flex3 ...

How do I use HttpWebRequest with GET method

I have the following code which works just fine when the method is "POST", but changing to "GET" doesn't work: HttpWebRequest request = null; request = HttpWebRequest.Create(uri) as HttpWebRequest; request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"; request.Method = "POST"; // Doesn't work with "GET" request.Begin...

Parse Accept Header

Does anyone have any suggestions (or a regular expression) for parsing the HTTP Accept header? I am trying to do some content-type negotiation in ASP.NET MVC. There doesn't seem to be a built in way (which is fine, because there are a lot of schools of thought here), but the parsing is not entirely trivial and I would rather not re-inve...

rtsp over http over a proxy

I am trying to fetch an RTSP stream over HTTP using a proxy. The behavior of the Real client seems to be a bit hectic: it tries all the possible ports, methods and protocols at once. The only thing that should work is HTTP GET over port 80. Such a request is indeed issued, and is received on the server. Here's how the request looks when ...

HttpWebRequest, known problems with canceling requests?

Are there any known issues with canceling HttpWebRequest HTTP requests? We find that when we cancel 4-5 requests, the next request hangs indefinitely. If there are no known problems with this, then I'm probably doing something wrong... where is a good resource example that shows how this works (a complete solution, not a couple of code ...

What is the purpose of HTTP Watch Pro?

What is the purpose of this software? http://www.httpwatch.com/ ...

HTTP Status 504

Hi All, I'm getting the following error when my win32 (c#) app is calling webservices. 'The request failed with HTTP status 504: Gateway timeout server response timeout.' I understand 'I think' that this is because the upstream request does not get a response in a timely fashion. But my question is this? How do I change the app.c...

How to receive http request in Delphi 7?

Hi, Which component is best to use for receiving HTTP requests in Delphi application? ...

Can I make IEMobile not strip the # from the URL of a redirect?

I am having an issue with IEMobile accessing my site. A certain redirect I use has a 302 response code, and the headers (yep, that's app-engine): Server Development/1.0 Python/2.5.2 Date Tue, 04 Nov 2008 16:47:02 GMT Content-Type text/html; charset=utf-8 Cache-Control no-cache Location http://localhost/games/...

Passing params in the URL when using HTTP POST

Is it allowable to pass parameters to a web page through the URL (after the question mark) when using the POST method? I know that it works (most of the time, anyways) because my company's webapp does it often, but I don't know if it's actually supported in the standard or if I can rely on this behavior. I'm considering implementing a ...

Java URLConnection : how could I find out a file's size ?

I'm working on a project for school , and I'm implementing a tool which can be used to download files from the web ( with a throttling option ) . The thing is , I'm gonna have a GUI for it , and I will use a JProgressBar widget , which I would like to reflect how much the tool downloaded so far , and for that I would need to know the siz...

custom HTTP headers for static files with Django

I'm writing an image bank with Django, and I want to add a button to get a hi-res version of an image (the low-res is shown in the details page). If I put just an <a> link, the browser will open the image instead of downloading it. Adding an HTTP header like: Content-Disposition: attachment; filename="beach008.jpg" works, but since...

HTTP Request Timeout

In Python 2.6, a new "timeout" parameter was added to the httplib.HTTPConnection class: http://docs.python.org/library/httplib.html#httplib.HTTPConnection However, this is only a timeout for the connection to a server. I am looking to set a timeout value for the request, not the connection. This doesn't seem to be supported by httplib...

Is there any difference between parameters in a URL and <form method="get"> ?

The question title says it all. Now, I know a difference between parameters in a URL and a POST parameter: some browsers may misbehave if the URL is too long, so it is not a good idea to stuff hundreds of parameters in a URL, even if your app can respond to a GET request. For the sake of discussion, let's suppose the following web appl...

HTTP URI GET limit

Is there a length limit of characters for an HTTP GET requests? ...

how can I see POST methods in raw HTTP that my computer sends to a page?

...

URL redirects; for general purpose use, which is better: server-side or client-side?

Take a very simple case as an example, say I have this URL: http://www.example.com/65167.html and I wish to serve that content under: http://www.example.com/about UPDATE: Note that the 'bad' URL is the canonical one (it's produced by a CMS which uses it internally for linking), so "/about" is just a way of polishing it. I have two...

Blank page in IE6

A site I am working on that is built using PHP is sometimes showing a completely blank page. There are no error messages on the client or on the server. The same page may display sometimes but not others. All pages are working fine in IE7, Firefox 3, Safari and Opera. All pages are XHTML with this meta element: <meta http-equiv="Content...

How to stop BaseHTTPServer.serve_forever() in a BaseHTTPRequestHandler subclass?

The python documentation states that BaseHTTPServer.HTTPServer is a subclass of SocketServer.TCPServer, which dows support a shutdown method - but it is missing in HTTPServer. I am running my HTTPServer in a separate thread (using the threading module which has no way to stop threads...) and want to stop serving requests when the main t...