Creativity + Code

How to buy prednisone online without rx


07.09.10 Posted in Blog buy Amoxil no prescription by Accutane online

When it how to buy prednisone online without rx comes to consuming web services, especially in Flash, most developers don’t think about using any other HTTP methods besides GET and how to buy prednisone online without rx POST.  In fact, I’m guilty of assuming that how to buy prednisone online without rx GET and POST are always the right way to go, and how to buy prednisone online without rx that other HTTP methods are just fluff for programmers with way too much time on their hands.  This narrow view of consuming data over HTTP even extends to how to buy prednisone online without rx the platforms we develop against, as evident by the fact that how to buy prednisone online without rx as of Flash Player 10.1, there is still no native support for how to buy prednisone online without rx proper communication with true RESTful web services (though all plugins suffer from this).

Now, you might be thinking, “I’ve never had how to buy prednisone online without rx a problem calling methods on a RESTful API in Flash. I just use URLLoader and how to buy prednisone online without rx URLRequest and it works just fine.”  If I had how to buy prednisone online without rx a dollar for every time I wrote code that worked but turned out to how to buy prednisone online without rx be wrong, I’d be writing this from my villa in Aruba.  My understanding of REST principles, like that how to buy prednisone online without rx of many other developers, was incomplete, and led to the misguided belief that how to buy prednisone online without rx I can consume all web services over HTTP the same way.  We know about GET and how to buy prednisone online without rx POST, but what about PUT and DELETE, core methods in a how to buy prednisone online without rx RESTful API.

Here are how to buy prednisone online without rx some good links that explain RESTful web services and the difference between POST and how to buy prednisone online without rx PUT as HTTP methods.

The problem in Flash is how to buy prednisone online without rx that the URLRequest class only supports HTTP GET and POST, and how to buy prednisone online without rx there is no way to use PUT or DELETE.  In fact, trying to do so results in a run-time error.  Steve Webster, developer for Yahoo, said it best in his 2008 blog post Cytotec no prescription worldwide, “This is how to buy prednisone online without rx due to a limitation in the NPAPI pseudo-standard used by non-IE browsers that how to buy prednisone online without rx only exposes the ability to make GET and POST requests. Unless NPAPI is how to buy prednisone online without rx updated to allow other HTTP methods, and browser vendors and plugin authors update their implementations to how to buy prednisone online without rx match that new API, we need to find other ways of interacting with RESTful web services.”

In order to get around this problem (it’s not just a Flash problem), a lot of RESTful services out there, including Google APIs can i buy synthroid in canada over the counter, are implementing an extra HTTP Request header, “X-HTTP-Method-Override”.  The value of this how to buy prednisone online without rx request header overrides the actual HTTP method used such that you how to buy prednisone online without rx can simply POST and state in the override header that you how to buy prednisone online without rx wish to use the PUT or DELETE method.  For example:

var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("http://yoursite.com/api/user/20/");
request.method = URLRequestMethod.POST;
request.requestHeaders = [new URLRequestHeader("X-HTTP-Method-Override", "DELETE")];
 
loader.load(request);

The block of code calls the User service’s DELETE method to remove the user with ID 20.  Using the how to buy prednisone online without rx X-HTTP-Method-Override request header, you can perform PUT, DELETE, and other HTTP methods (like HEAD, OPTION, etc.), despite the fact that Flash does not support them.



Leave a Reply