I have a server that has to respond to HTTP and XML-RPC requests. Right now I have an instance of SimpleXMLRPCServer, and an instance of BaseHTTPServer.HTTPServer with a custom request handler, running on different ports. I'd like to run both services on a single port.
I think it should be possible to modify the CGIXMLRPCRequestHandler...
I have a server script that I need to pass data to from the browser without reloading the page (aka ajax). The data is sensitive so should be sent via https. The page however is on the http layer. Because of same domain/protocol restriction, the browser doesn't allow this.
I'm thinking of cheating the system a bit by dynamically creatin...
We all know how easy character sets are on the web, yet every time you think you got it right, a foreign charset bites you in the butt. So I'd like to trace the steps of what happens in a fictional scenario I will describe below. I'm going to try and put down my understanding as well as possible but my question is for you folks to correc...
So far I've a class for a simple local service. What I want to do is to send requests to this local service from different activies in my application. Depending on the parameters of these requests the service will connect via HttpClient to a webserver and receive a JSONObject and return it to the activity. All the HTTP communication is a...
Hi guys. Thanks in advance for any help received.
I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works.
There are 3 possible outcomes I want to check for:
A status of 200 - OK,
A status of 500 - Server Error,
Or a status of 404 - page not found.
When executing the following cod...
In J2ME ,Which connection type is better?Get or post.Which one is faster?which one uses less bandwidth?and which one is supported by most of the handsets?What are the advantages and disadvantages of both?
...
I have a <form> with several text inputs and a textarea. The documents Content-Type header is text/html; charset=ISO-8859-1 and in the <head>-part I have a meta-tag with the same content-type: <meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />. But when I type some special characters in one of the fields (like äüüß...
I have a single form with two submit buttons. Server side discovers proper intention by checking if submit button name is in the request parameters.
Unfortunately I failed to test it with HttpUnit - looks like HttpUnit does not include the button name in the request parameters.
I simulate the click by:
dialog.clickButton(<button-id>)
...
What simple AtomPub server libraries with file- or DB-based backends can you recommend? Unix-style servers that "do one thing, do it well" are especially welcome.
Maybe even libraries in Python?
...
Note: I am new to Tomcat...
I am getting this message in the Tomcat localhost_access_log:
127.0.0.1 - - [09/Oct/2009:09:37:30 -0700] "OPTIONS /stl/foo HTTP/1.1" 200 -
Can anyone explain to me where the OPTIONS comes from? I am using a 3rd party library (DirectJngine) but in perusing the source I can't see any reference to this being s...
I would like to send the HEAD command of the Hypertext Transfer Protocol to a server in PHP to retrieve the header, but not the content or a URL. How do I do this in an efficient way?
The probably most common use-case is to check for dead web links. For this I only need the reply code of the HTTP request and not the page content.
Gettin...
I know that user agent can be faked easily when connecting through HTTP. I want to ensure access to my SOAP API only from iPhone devices. We don't know how many users will be using this when it is released but it might be a lot and we can't handle traffic from outside of the devices. Any other means to prevent this?
...
I issue a simple GET request to my server, and it's coming back after ~1.2 seconds on average (using firebug NET tab, the "waiting for reqponse" part- not even the whole reponse time)
My ping to the server is 0.250
Using Passenger with rails 2.3.3, in the rails log the request is taking ~0.023
My server is on GoDaddy, so I checked the...
I need to implement a small test utility which consumes extremely simple SOAP XML (HTTP POST) messages. This is a protocol which I have to support, and it's not my design decision to use SOAP (just trying to prevent those "why do you use protocol X?" answers)
I'd like to use stuff that's already in the basic python 2.6.x installation. ...
Hi
I’m new in iphone development world and I’m trying to call a web service using the HTTP method POST.
To do that I'm using the NSMutableUrlRequest. My problem is that the DidReceiveData delegate is never called and the NSUrlConnection doesn’t return null.
Here is my code :
- (void)connection:(NSURLConnection *)connection didRecei...
Does the HTTP standard or something define which encoding should be used on special characters before they are encoded in url with %XXs? If it doesn't define is there a way define which encoding is used? It seems that most browsers send the data in utf-8.
...
Documentation state that dontEscape is deprecated and always false.
However it actually works. Is it a good idea to use it anyway, or is there any other alternative to send non RFC compliant Http requests?
Sample Code:
Dim U As New Uri("http://www.google.com/>", True)
Dim W As New Net.WebClient()
WL(W.DownloadString(U))
...
I often need to generate content dynamically from a servlet / restlet or whatever, and don't know the length ahead of time. If the client is a browser, the progress bar doesn't work properly, because I haven't set the Content-Length header. Is there any way of setting an estimated content length, so the progress bar works "more or less"?...
I thought that an html form has no effect on the layout of a page, and that it is just a way to group fields to send their values to the server in a single request.
However, I notices that when I remove the form tag, the layout changes.
Where can I find an explanation of visual effects of the <form> tag?
...
I want to set a favicon to be requested from a static file server instead of the main web server for performance optimization.
If I specify a <link rel="shortcut icon" href="http://cdn.site.com/favicon.ico"> but also have a /favicon.ico in my site root as a fallback, which will browsers prefer? Will browsers (and which?) still look ...