I tried to find this in the relevant RFC, IETF RFC 3986, but couldn't figure it.
Do URIs for HTTP allow Unicode, or non-ASCII of any kind?
Can you please cite the section and the RFC that supports your answer.
NB: For those who might think this is not programming related - it is. It's related to an ISAPI filter I'm building.
A...
In one of my application I'm using the WebClient class to download files from a web server. Depending on the web server sometimes the application download millions of documents. It seems to be when there are lot of documents, performance vise the WebClient doesn't scale up well.
Also it seems to be the WebClient doesn't immediately clo...
I'm trying to illustrate to students how https is used in java. But i have the feeling my example is not really the best out there...
The code works well on my windows 7: I start the server, go to https://localhost:8080/somefile.txt and i get asked to trust the certificate, and all goes well.
When I try over http (before or after accept...
Is this defined? Or is it set with a header, similar to the HTTP-response?
...
I've been trying to automate a log in to a website I frequent, www.bungie.net. The site is associated with Microsoft and Xbox Live, and as such makes uses of the Windows Live ID API when people log in to their site.
I am relatively new to creating web spiders/robots, and I worry that I'm misunderstanding some of the most basic concepts....
I am designing a chat server in java. The communication is Http based and not socket based. In the client side I have an applet. In the server side I have a servlet.
Applet: I create a new thread to listen for incoming messages(GET method). The main thread is used to send messages(POST messages).
The partial code is :
public void star...
Hi. I'm trying to write a light-weight HTTP server in my app to feed dynamically generated MP3 data to the built-in Android MediaPlayer. I am not permitted to store my content on the SD card.
My input data is essentially of an infinite length. I tell MediaPlayer that its data source should basically be something like "http://localhos...
Ok this is my application :
An Android app to allow me to submit CokeZone codes into CokeZone.co.uk from a mobile app instead of from the website.
So I wrote this section of code to do the post logon command and then check to see if im logged in after.
Problem is - the html I get from the homepage after I send the post command is the ...
The documentation for WinHttpReadData says, regarding HTTP's chunked transfer coding:
Starting in Windows Vista and Windows Server 2008, WinHttp enables applications to perform chunked transfer encoding on data sent to the server. When the Transfer-Encoding header is present on the WinHttp response, WinHttpReadData strips the chunki...
Firefox is issuing duplicate requests to my ASP.Net web site. It will request a page, get the response, then immediately issue the same request again (well, almost the same -- see below). This happens on every page of this particular Web site (but not any others). IE does not do this, but Chrome also does this.
I have confirmed that the...
When the .NET System.Uri class parses strings it performs some normalization on the input, such as lower-casing the scheme and hostname. It also trims trailing periods from each path segment. This latter feature is fatal to OpenID applications because some OpenIDs (like those issued from Yahoo) include base64 encoded path segments whic...
Hi all
We are using EHCache with CF 8 to cache stuff on a central server using a RESTful interface over HTTP. I am trying to cache a cfquery object to the cache server.
I can get this to work if I call EHCache direct (i.e. store it in a local cache) but if I try to cache on a remote server over HTTP I am running into problems.
The co...
Hello, I have a REST webservice that I need to consume in C#. I need support for more than just GET requests though. I need everything that is done by REST including GET, PUT, POST, and DELETE. What is the best way of interfacing with this? I do not see anything for HTTPRequest to be able to do POST or anything other than GET unless you ...
Most web browsers support only HTTP methods like GET and POST and do not support PUT and DELETE.
If so, does web servers like IIS and Apache support it? Why should them support if the web browsers don't supports them? Those methods can be used for something else?
...
Hello, I am using an open source library to connect to my webserver. I was concerned that the webserver was going extremely slow and then I tried doing a simple test in Ruby and I got these results
Ruby program: 2.11seconds for 10 HTTP
GETs
Ruby program: 18.13seconds for 100 HTTP
GETs
C# library: 20.81seconds for 10 HTT...
hi everyone,
I need to minimize Apache HTTP response headers, by now i reduced them as following
HTTP/1.1 200 OK
Date: Thu, 25 Mar 2010 21:57:41 GMT
Server: Apache
Content-Type: text/html
I'd like to know if there is a way to disable Date and Server header, only for a certain virtual host.
Thank you!
...
Hi,
I have a loosely coupled web app (one part uses PHP, the other uses WGSI). The WSGI/python framework shares the authentication with the PHP app, meaning that generally, the user should
Log in via the PHP interface
Now the user can access any of the WSGI pages [this part works if the user has logged in]
What I want to do though, ...
Hi everyone,
I am using a lot of HTTP Requests in an application that I am writing which uses OAuth. Currently, I am sending my GET and POST requests the same way:
HttpConnection connection = (HttpConnection) Connector.open(url
+ connectionParameters);
connection.setRequestMethod(method);
co...
I'm trying to get a certain cookie in a java client by creating a series of Http requests.
It looks like I'm getting a valid cookie from the server but when I'm sending out a request to the fnal url with the seemingly valid cookie I should get some lines of xml in the response but the response is blank because the cookie isw rong or is i...
Hi there,
I've a absolute simple proxy running.
require 'webrick'
require 'webrick/httpproxy'
s = WEBrick::HTTPProxyServer.new(:Port => 8080,
:RequestCallback => Proc.new{|req,res| puts req.request_line, req.raw_header})
# Shutdown functionality
trap("INT"){s.shutdown}
# run the beast
s.start
This should in my mind not influ...