http

Parameter retrieval for HTTP PUT requests under IIS5.1 and ASP-classic?

I'm trying to implement a REST interface under IIS5.1/ASP-classic (XP-Pro development box). So far, I cannot find the incantation required to retrieve request content variables under the PUT HTTP method. With a request like: PUT http://localhost/rest/default.asp?/record/1336 Department=Sales&Name=Jonathan%20Doe%203548 how do I read...

GET vs. POST does it really really matter?

Ok, I know the difference in purpose. GET is to get some data. Make a request and get data back. POST should be used for CRUD operations other than read I believe. But when it comes down to it, does the server really care if it's receiving a GET vs. POST in the end? ...

How to properly send an HTTP message to the client

I'm working on a RESTful web service in Java. I need a good way to send error messages to the client if something's wrong. According to the Javadoc, HttpServletResponse.setStatus(int status, String message) is deprecated "due to ambiguous meaning of the message parameter." Is there a preferred way to set the status message or "reason ...

F4V Player Works on Every Site But One

I almost don't even know how to begin describing this question - I am completely baffled. Basically, I have a custom-built F4V video player that grabs an F4V via an HTTP request, then plays the video with some standard AS3. Now, I have three sites on identical SliceHost slices, running the same OS, same PHP version, built on the same ...

Is there any reason not to use HTTP PUT and DELETE in a web application?

Looking around, I can't name a single web application (not web service) that uses anything besides GET and POST requests. Is there a specific reason for this? Do some browsers (or servers) not support any other types of requests? Or is this only for historical reasons? I'd like to make use of PUT and DELETE requests to make my life a lit...

How do I set the http proxy in a subshell launched from a windows service

I am writing a windows service which takes an uploaded file, runs signtool.exe on it to do the signing and timestamping and then serves the signed file back. The code for this works when run as a standalone server using twisted however if I try and run it as a service it fails with the error "Signing succeeded, but an error occurred whi...

Best way for Flex to communicate with C# backend?

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets. I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive. Anything that supports ...

Sending custom HTTP error information to Flash, JavaScript, etc.

I'm developing a REST API at the moment, and one of the core features of this is that is uses a variety of HTTP status codes to return status/error information, some of which may be extended information (e.g. if an item is not found, some other similar items) which will be in the response body. This is fine until you get to 'crippled' c...

Getting HTTP request from IE

Is there a way to access the http request IE made when the page is already loaded. For instance, I have an application that is opening a browser window. I want to scrape the page, but would like to get the entire http request for that page (not just the URL). I have downloaded the developer tools, but don't see anything in there for the...

JEE Web - Switching from HTTPS to HTTP depending on resource

Using only standard JEE API (JAAS, Servlet API, JSF) How can I switch back from a CONFIDENTIAL channel to a Unsecured one? In my example I already managed to switch from an Unsecured channel to a Secured one for the resources in "*/secured/**", but I'm in need to switch back to an unsecured channel after a successful Authentication as t...

Detect when browser receives file download

I have a page that allows the user to download a dynamically-generated file. It takes a long time to generate, so I'd like to show a "waiting" indicator. The problem is, I can't figure out how to detect when the browser has received the file, so I can hide the indicator. I'm making the request in a hidden form, which POSTs to the server...

How do I force the browser to update its base URL

I have a PHP script that uses CURL to fetch a remote page and return the output as is. It displays fine in the browser, but the problem is, when I click a link it is still using the old base url. Can I force the browser with some kind of HTTP Header or something to use the base url of the server that I fetched the page from in my PHP scr...

IIS7 Compression Failure

I'm having issues with IIS7's static compression. I've read some of the other posts, and I'm out of options. Here's what I have: In the applicationHost.config, I've set up: <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" staticCompressionDisableCpuUsage="100"> <scheme name="gzip" dll="...

Why does Firefox fire two requests for embedded swfs?

When a swf is embedded in a page and is not cached locally in the browser, two requests for the swf are fired by the browser. Here is a simple example. The first request returns an expected 200 OK, and the second request triggers a 304 Not Modified after the first request has completed, indicating the file is now cached locally. Why is...

HTTP client example on win32

Dear All, I wanted to develop one HTTP example on win32 platform, which is asynchronous. I am new to win32 programming, can i know what are the api and library win32 platform provides for HTTP send and receive request. I am using windows xp with VS 2005. If any example is available directly on net please provide me link to it, wit...

Correctly switching between HTTP and HTTPS using .htaccess

We've got a shopping site which we're hosting on a shared host (Mediatemple Gridserver). Some parts of the site need to use HTTPS (checkout etc) but the rest should be using HTTP. Does anyone know how we can always force the correct use of HTTP/HTTPS for particular URLs? We've had it working in various states but we can't get a request ...

WCF Service with webHttpBinding; 404 error

Hi, does a service, which is configured like in the box below, throwing a 404 when there is a mismatch in the parameter? In this case the parameter is a complex type and every call to the SearchJson method returns a 404... ( is it even allowed with the WebInvoke option and WITHOUT the UriTemplate? ) The service is up and running ( i ca...

WebDAV behind a reverse proxy

I have 2 servers. One Reverse proxy on the web and one on a private link serving WebDAV. Booth servers are apache httpd v2. On the proxy I have: ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /repo/ http : //share.local/repo/ ProxyPassReverse /repo/ ht...

Is there anything like HTTP::Recorder for Python?

I really like Perl's HTTP::Recorder. Is there something like it for Python? ...

Is there much overhead with HTTP uploads?

I have files often uploaded via browser and maybe considering using another method to make uploads faster. When a file is uploaded via browser, is there much overhead due to encoding? Do you know how much? Thanks! ...