Commit Graph
25 Commits
Author SHA1 Message Date
Michael Hutchinson aa4bddf53a 2008-09-30 Michael Hutchinson <[email protected]>
* HttpServerChannel.cs: make sure the channel data object is set 
	  when the port is auto-assigned.
	* HttpClientTransportSink.cs: Use the __RequestUri header for the 
	  request's URI. Includes workaround for bad __RequestUri values.
	
	Fixes Bug 378713 - [regression] Remoting - HttpChannel.


svn path=/trunk/mcs/; revision=114530
2008-10-01 00:00:25 +00:00
Michael Hutchinson d820c9b996 2008-09-24 Michael Hutchinson <[email protected]>
* HttpServerTransportSink.cs: Disable chunking on the server, as 
	  for some reason it was breaking the tests. This reduces efficiency 
	  but right now is unavoidable.
	  
	* HttpServerChannel.cs: Implement AddHookChannelUri. Thanks to 
	  Lluis for the patch.


svn path=/trunk/mcs/; revision=113999
2008-09-24 19:30:33 +00:00
Michael Hutchinson d997190fc1 svn path=/trunk/mcs/; revision=113894 2008-09-23 20:57:12 +00:00
Michael Hutchinson c1cc8a14f4 svn path=/trunk/mcs/; revision=113893 2008-09-23 20:54:45 +00:00
Roei Erez 869928f0f0 Initialize Channel uri in all cases
svn path=/trunk/mcs/; revision=95498
2008-02-12 13:55:28 +00:00
Robert Jordan c3d3e783a7 2007-10-30 Robert Jordan <[email protected]>
* HttpHelper.cs: Support for the "https" scheme. Make scheme parser
	case invariant. Fixes bug #81701.

	* HttpServerChannel.cs (GetChannelUri): Take channel data into account.

	* HttpServerChannel.cs (SetupChannel): Initialize channel data
	with "null", because at this stage we don't necessary have a valid
	channel URI.


svn path=/trunk/mcs/; revision=88436
2007-10-30 02:14:42 +00:00
Lluis Sanchez 058b7309cf 2006-12-18 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: The remoting infrastructure does not call
	  StartListening() anymore, so it has to be called by the channel.


svn path=/trunk/mcs/; revision=69704
2006-12-19 01:18:02 +00:00
Andrew Skiba 05a0ec2065 exceptions propagating incompatible with dotnet. Patch by [email protected]
svn path=/trunk/mcs/; revision=57589
2006-03-05 09:05:09 +00:00
Svetlana Zholkovsky b56cf1715e Fix HttpHandler, HttpHandlerFactory and HttpServerChannel to work properly with a web server hosted applications; Add HttpHandlerFactory.jvm.cs
svn path=/trunk/mcs/; revision=52620
2005-11-06 10:47:25 +00:00
Lluis Sanchez 079557fc7e 2005-05-18 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: Catch exceptions thrown in the server thread.
	In StopListening, wait for the server thread to stop before returning.


svn path=/trunk/mcs/; revision=44687
2005-05-18 15:55:59 +00:00
Lluis Sanchez ba41d27138 2005-01-14 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: Use the new RemotingThreadPool to manage threads.
	  Fixed some warnings.
	* HttpServer.cs: Minor fix.


svn path=/trunk/mcs/; revision=38947
2005-01-14 17:29:00 +00:00
Lluis Sanchez 95cc3b3260 2004-12-17 Lluis Sanchez Gual <[email protected]>
* HttpHelper.cs: Removed unused method. Optimized CopyStream method.
	* HttpServerChannel.cs: SendResponse does not return a bool any
	  more, it throws an exception when it fails.
	* HttpServer.cs: Improved handling of errors.


svn path=/trunk/mcs/; revision=37874
2004-12-17 12:01:43 +00:00
Duncan Mak bab786ade5 Add licensing info
svn path=/trunk/mcs/; revision=30348
2004-06-24 21:38:17 +00:00
Lluis Sanchez 0ed89f563f * HttpServerChannel.cs: Default port is 0.
svn path=/trunk/mcs/; revision=28179
2004-05-26 18:25:52 +00:00
Lluis Sanchez 466fabe5ae * HttpServerChannel.cs: Take unused port if the provided prot is 0.
svn path=/trunk/mcs/; revision=28034
2004-05-25 11:34:08 +00:00
Lluis Sanchez a1befbed05 * HttpChannel.cs, HttpClientChannel.cs: Added missing IDictionary
properties.
	* HttpRemotingHandler.cs: Added missing constructor.
	* HttpRemotingHandlerFactory.cs: Made ConfigureHttpChannel private.
	* HttpServerChannel.cs: Fixed IDictionary properties.

svn path=/trunk/mcs/; revision=27245
2004-05-13 08:55:28 +00:00
Lluis Sanchez 292ff44766 * HttpServer.cs: Allow the use of GET method (SdlServerSink supports it).
Added some text constans for transport keys.
	* HttpServerChannel.cs: Add SdlChannelSinkProvider to the default
	sink provider chain. Removed unused ErrorMessage class.

svn path=/trunk/mcs/; revision=20966
2003-12-10 15:56:53 +00:00
Lluis Sanchez 8fe1f64ee8 * HttpHelper.cs: Removed usnused method GetMachineIp.
* HttpServerChannel.cs: Added support for priority, bindTo, useIpAddress and
	  machineName properties.

svn path=/trunk/mcs/; revision=20075
2003-11-16 21:56:13 +00:00
Lluis Sanchez 47d9640fa6 * HttpChannel.cs: Moved initialization code in SetupChannel to the
respective client and server channels. Added implementatoin of the
	  interface IChannelReceiverHook.
	* HttpRemotingHandler.cs: Implemented.
	* HttpRemotingHandlerFactory.cs: Implemented.
	* HttpServer.cs: In general, use Stream instances instead of Socket. It is
	  more reusable in this way. Also improved formatting.
	* HttpServerChannel.cs: Implemented support for IChannelReceiverHook.
	  Added new method DispatchRequest in HttpServerTransportSink that can
	  be reused by HttpRemotingHandler.

svn path=/trunk/mcs/; revision=19943
2003-11-13 16:59:42 +00:00
Lluis Sanchez ee47b84f26 * HttpServerChannel.cs: Removed StartListening call from constructor. It
is called by the remoting framework.
	* HttpClientChannel.cs, HttpHelper.cs: Fixed some formatting.

svn path=/trunk/mcs/; revision=19889
2003-11-12 15:37:19 +00:00
Lluis Sanchez 533d806f5a * HttpHelper.cs: Fixed bug #48468. Patch by Jean-Marc Andre.
* HttpClientChannel.cs HttpServer.cs HttpServerChannel.cs: Fixed some warnings.

svn path=/trunk/mcs/; revision=18145
2003-09-17 11:37:26 +00:00
Lluis Sanchez 92fe3d5d5d * HttpClientChannel.cs: Changed text for user-agent header (removed references
to MS.NET).
	  Removed try/catch from AsyncProcessRequest. If there is an exception it must
	  flow to the caller.
	  in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
	  throws an exception if the result code is 400, 500. Is is not a communication
	  error, but an application or server error. The content of the body must be
	  deserialized like in normal responses.
	  In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
	  efficient way of writing the content.
	  In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
	  new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
	* HttpHelper.cs: Removed some debugging code that is not needed.
	* HttpServer.cs: Improved formatting of some code.
	  In CheckRequest method, send a 100-continue response if the request has
	  the header: expect:100-continue.
	  Method SendResponse: the remoting formatter may include the result code and
	  reason phrase to use in the transport headers. Used them if provided.
	* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
	  a request.

svn path=/trunk/mcs/; revision=17515
2003-08-22 14:09:48 +00:00
Lluis Sanchez 0a14773bc7 * HttpClientChannel.cs, HttpServerChannel.cs: Fixed bug #47703
svn path=/trunk/mcs/; revision=17383
2003-08-18 19:45:14 +00:00
Lluis Sanchez eaac7d7745 * HttpChannel.cs, HttpClientChannel.cs, HttpHelper.cs, HttpServer.cs,
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
	  by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.

svn path=/trunk/mcs/; revision=15533
2003-06-21 12:49:23 +00:00
Martin Willemoes Hansen b5bff485cb * Stubed System.Runtime.Remoting.Channels.Http
svn path=/trunk/mcs/; revision=12750
2003-03-22 17:10:03 +00:00