Articles Tagged 'http'

Very short snippet: how to identify the Ajax calls in PHP

When building an Ajax Gateway, ie a file that is invoked by the object XmlHTTPRequest JavaScript, you can inadvertently create a tunnel to unwanted intrusion. Being in fact a file like the others, located on our server is reachable from the address bar of your browser.

Continued ...

Very short trick: proxy RSS with SimplePie

If you use Flash or Ajax to read RSS feeds from other domains, you need to equip yourself with a proxy (tunneling) because of the protections imposed by both technologies (see tunneling and proxy servers for Ajax and beyond ). If your site or blog is already SimplePie , you can write a simple proxy like this:

Continued ...

RESTTest: useful extension for FireFox

RESTTest Here is an interesting extension for Firefox ( 2.0.0.9 patch released today ) written by Kris Zyp. RESTTest allows for send and receive check to a URL using the REST protocol, choosing between the canonical methods GET or POST (possibly customized) .
RESTTest can be used to test the XmlHttpRequest object and then to test applications that use Ajax. We can then quickly and easily simulate XHR requests and responses.
This extension is designed specifically for working with REST resources and supports all HTTP methods.
In the field POST / PUT can enter all the parameters that we are sending our test, the standard syntax:

variable1 = value1 & variable2 = value2 &[...] variable n = n value

This extension is also useful in testing the RSS feeds of a site or in the analysis of paramteri any RPC service.

Continued ...

Notes on testing and debugging in Flash

One consideration, obvious but overlooked during the development of applications in Adobe Flash, the difference between the player used for testing within the IDE Flash and the object (ActiveX or EMBED) used by your browser. Who owns the version "Macromedia" Flash MX (version 8 to be precise, but this discussion really applies to any version of Flash ...) when developing a movie and try it within the IDE runs the Flash Player linked to development package. Then when you publish your movie on the net and you "test" with the Flash Player browser you may experience some - substantial - differences!

imageimage

Continued ...

Dynamic Javascript and CSS Files

In Post Create an RSS Reader in PHP and Javascript indirectly we met a very interesting technique that allowed to create - in practice - a file from PHP JavaScript.

Continued ...

The future of HTTP

The development of web applications with Ajax-type technologies has highlighted the limitations of all Internet protocol HTTP. Sooner or any programmer trardi collides with the need - for example - to have a permanent connection with the client. Sending a broadcast to the client message is still impossible without resort to some artifice risky!

In the Internet scenario, however, the use of special components such as ActiveX Object, Flash or Java applet, allowing to circumvent the problem well. Often, in fact, one wonders if the HTTPRequest object (brick base for Ajax experience) can not be substituted by an ActiveX component or by using an invisible Flash movie just in case!

This is one of the most poignant part of the development of next-generation web applications. To prove it, in fact, there are a number of "beta" web application using mixed technologies to solve the various problems that arise - and that the HTTPRequest is unable to perform. The same FlickR , one of the most successful photo-blog, makes use of Flash movies in some sections of the site. There are actually more articulate where there are Java applets or ActiveX controls to get them where no one - Ajax - was gone before!

What should be done in the short term, is a new standard for the HTTPRequest, even calling it another way. Being able to get an object, present in all browsers, capable of making connections permanet and able to handle multiple protocols. However, this would be a pipe dream for developers, but reason well, could lead to death of the Internet as we know it.

When HTTP was designed as a global network we know today had very different speeds and users. The important points of HTTP are:

  • Connecting to the Web Server
  • Request a file
  • Disconnecting

The HTTP is born with the basic idea of not burdening the network transmission; minimal support handshake! Even today, when the browser requests a page to a Web Server, the place just three steps above. It 'important to note that Google has developed a software like Google Earth in order to overcome the obstacles of connection and other stuff. Internet connection is ready to bear permanet? We think it's premature. Most hosting will collapse in a few seconds. Banda and CPU should be much more able to withstand the amount of traffic that is produced today.

The fact that support connections permanet are well circumscribed, and always make use of specific technologies and components, and sophisticated.

Continued ...


Stop SOPA