Relative Content

Tag Archive for http

How I identify true error?

I am writing a program to scrap some data from the web. The pages are sequential ( 1,2,3 … ), but I have no idea when will it stops. I combine a prefix and a integer to make a link for the python urllib to parse on it. For example : ‘http://some.domain.com/page’ + ‘1’ + ‘.htm’.

Should HTTP Verbs Be Used Semantically?

If I’m making a web application which integrates with a server-side backend, would it be considered best practice to use HTTP methods semantically? That is, for example, if I’m fetching data (e.g., to populate a menu, etc.), I would use GET, but to update data (e.g., save a record), I would use POST. (I realise there are other methods that may be even more appropriate, but we need to consider browser support.)

Methodology behind fetching large XML data sets in pieces

I am working on an HTTP Server in Delphi which simply sends back a custom XML dataset. I am not following any type of standard formatting, such as SOAP. I have the system working seamlessly, except one small flaw: When I have a very large dataset to send back to the client, it might take up to 2 minutes for all the data to be transferred. The HTTP Server I’m building is essentially an XML Data based API around a database, implementing the common business rule – therefore, the requests are specific to the data behind the system.

Strategy for clients to retrieve real-time log from HTTP server

I have an HTTP Server Service application which has its own logging mechanism. It’s written in Delphi. I would like to provide a way for multiple clients to connect to this service and get a real-time update of the log. The log in the service moves rather fast, there’s a lot of things to log. There may be up to 50 messages within 1 second at times. The existing log which is already implemented is not saved, it’s only kept in the memory of the server service – where I will need to distribute it to any client which needs it. Once all clients have a log message, it should be deleted.