Pozdeev
b7754c85fd
[System] Set KeepAlive flag for HttpWebRequest
2016-08-30 13:36:21 +05:00
Ludovic Henry
249daf43de
[mcs] Replace NET_2_1 by MOBILE
...
NET_2_1 is also defined whenever we define MOBILE, so they have the same effect. Silverlight was 2.1 but it's been dead for a while now, and we do not even support it.
2016-08-18 16:34:36 +02:00
Atsushi Eno
63a8b865f7
[WCF] bonus, NET_2_1 is blocking set_Timeout. It didn't exist in Moonlight.
2015-05-22 01:23:27 +08:00
Zoltan Varga
032f313d5f
[bcl] Remove NET_4_0 defines from class libs.
2015-01-13 16:06:31 -05:00
Atsushi Eno
c67aed9a47
fix build.
2014-01-10 20:42:25 +09:00
Atsushi Eno
2fd8da4920
Fix bug #11336 .
2014-01-10 19:03:33 +09:00
Martin Baulig
97d52b2237
[WCF]: Implement cookie support in .NET 4.0.
2013-03-22 04:08:10 +01:00
Rodrigo Kumpera
a0d28b2587
Kill the MOONLIGHT define in System.ServiceModel.
2013-02-11 13:01:11 -05:00
Martin Baulig
25f9a11c6e
[ #6515 ][WCF]: Enable custom headers for NET_2_1.
...
This allows
HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
request.Headers.Add ("Foo", "Bar");
OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);
The code was already there, but disabled for the NET_2_1 profile.
2012-09-17 17:31:44 +02:00
Martin Baulig
d2d43552c2
[ #6201 ][WCF]: Don't crash if we don't have a client certificate.
2012-09-15 21:10:36 +02:00
Miguel de Icaza
b1e73aa3e2
Make this build on the MOBILE profile
2011-10-21 11:50:17 -04:00
Miguel de Icaza
abbb1550d3
Apply patch from Mario Kosmiskaso fix bug 1207: Throw the correct exception when a REST request returns a 404
...
.NET throws a EndpointNotFoundException encapsulating a WebException when a
REST request returns a 404.
The attached patch tests for a 404 and throws the same exception chain thrown
by .NET.
2011-10-16 11:46:00 -04:00
Miguel de Icaza
1b47742b05
Apply patch from Mario Kosmiskaso fix bug 1207: Check reference before copying values from Headers
...
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.
Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:46:00 -04:00
Miguel de Icaza
f17f74024a
Apply patch from Mario Kosmiskaso fix bug 1204: Add certificate to the HttpWebRequest if configured
...
System.ServiceModel.Channels.HttpRequestChannel never added the configured
certificate to the HttpWebRequest which prevented client side authentication.
The attached patch does exactly that if a certificate has been configured.
2011-10-16 11:45:59 -04:00
Atsushi Eno
50d748b1b6
Use correct MessageVersion instead of Default for empty response.
...
Part of bugfix #687580 .
2011-04-15 21:30:04 +09:00
Atsushi Eno
9d59e8ae3d
HttpRequestChannel should also return CookieContainer in NET_2_1 profile.
...
Fixed bug #683642 .
2011-04-07 12:31:40 +09:00
Atsushi Eno
4dbd74fae5
fix wrong attempt to add restricted headers in HttpRequestChannel.
2011-04-02 11:28:19 +09:00
Atsushi Eno
cd100616f4
Less !NET_2_1/!MOONLIGHT to improve SL4 WCF compatibility.
2011-04-01 20:39:33 +09:00
Atsushi Eno
0b2d2e17cd
Avoid possible list modification error during close process.
2011-01-21 20:25:23 +09:00
Sebastien Pouliot
90f76e6521
Query SupportsCookieContainer ini Moonlight build
...
* HttpRequestChannel.cs: Do not use CookieContainer unless we know its
supported (e.g. client stack) otherwise we'll throw (browser stack)
2010-11-11 15:28:54 -05:00
Sebastien Pouliot
6bf7db2ca6
WebResponse.Headers is not always available (e.g. moonlight browser stack)
...
* System.ServiceModel.Channels/HttpRequestChannel.cs: For Moonlight use
the WebResponse.SupportsHeaders before accessing the Headers collection.
This is needed because (the default) browser stack does not expose the
headers from its responses. Fix bug #642193
2010-09-28 08:43:05 -04:00
Atsushi Eno
59de000b20
Avoid holding WebRequest. This should fix part of bug #636500 .
2010-09-10 17:51:30 +09:00
Jb Evain
5e32d42531
Remove workaround for moonlight now that System.dll's WebExceptionStatus is properly compiled
2010-09-03 11:31:17 +02:00
Atsushi Eno
65e5d6381c
moonlight build workaround: smcs somehow rejects to compile this code.
2010-09-02 21:53:09 +09:00
Atsushi Eno
271213c255
Throw EndpointNotFoundException when it cannot connect to the remote server.
2010-09-02 12:04:29 +09:00
Atsushi Eno
8d3ff9480e
2010-07-09 Atsushi Enomoto <[email protected] >
...
* SecureMessageGenerator.cs : MessageBuffer was missing copy of
Body wsu:Id attribute.
* HttpRequestChannel.cs : remove comment for resolved issue.
svn path=/trunk/mcs/; revision=160102
2010-07-09 05:37:14 +00:00
Atsushi Eno
a80f043367
2010-07-08 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : remove extra code.
svn path=/trunk/mcs/; revision=160037
2010-07-08 08:42:12 +00:00
Andreia Gaita
9b8e9605c3
* HttpRequestChannel.cs: if the response has no body, create an
...
empty message and return that.
Note: the ws-mc protocol defines that the service returns an
200 response with an empty body on first connection, this
adds support for that (fixes part of #599667 )
svn path=/trunk/mcs/; revision=157525
2010-05-19 05:10:16 +00:00
Atsushi Eno
270d685791
2010-05-12 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : implement On[Begin|End][Close|Open] methods.
svn path=/trunk/mcs/; revision=157243
2010-05-12 15:01:17 +00:00
Atsushi Eno
25a5ead3c2
2010-04-06 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : add commented note.
svn path=/trunk/mcs/; revision=154838
2010-04-06 11:13:49 +00:00
Gonzalo Paniagua Javier
d234d0136f
2010-04-06 Gonzalo Paniagua Javier <[email protected] >
...
* HttpRequestChannel.cs: don't create the wait handle unless it is
really needed.
svn path=/trunk/mcs/; revision=154822
2010-04-06 05:01:51 +00:00
Atsushi Eno
f026893db8
2010-04-02 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : use correct max buffer size.
svn path=/trunk/mcs/; revision=154708
2010-04-02 11:36:49 +00:00
Atsushi Eno
40564594bb
2010-03-26 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : ok, no need for conditional code path.
svn path=/trunk/mcs/; revision=154275
2010-03-26 14:18:47 +00:00
Sebastien Pouliot
8c187610f3
2010-03-26 Sebastien Pouliot <[email protected] >
...
* HttpRequestChannel.cs: There is no WebHeaderCollection.Add
method in SL API
svn path=/trunk/mcs/; revision=154264
2010-03-26 12:30:14 +00:00
Atsushi Eno
98329a07f9
2010-03-26 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : create HttpResponseMessageProperty.
svn path=/trunk/mcs/; revision=154247
2010-03-26 06:33:48 +00:00
Atsushi Eno
01bd843372
2010-03-25 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : handle only 4xx errors as to not process
content stream.
svn path=/trunk/mcs/; revision=154191
2010-03-25 07:53:38 +00:00
Jb Evain
69fc3eefe6
use MOONLIGHT symbol
...
svn path=/trunk/mcs/; revision=153654
2010-03-16 10:55:58 +00:00
Atsushi Eno
af5c0da74d
2010-02-05 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs, HttpTransportBindingElement.cs :
enable authentication schemes on monotouch.
* Dummy_2_1.cs : remove AuthenticationSchemes. It blocks MT support.
svn path=/trunk/mcs/; revision=150909
2010-02-05 02:21:37 +00:00
Atsushi Eno
17b88b6dcf
2010-01-13 Atsushi Enomoto <[email protected] >
...
* HttpChannelFactory.cs, TcpChannelFactory.cs,
ChannelFactoryBase.cs, NamedPipeChannelFactory.cs
PeerChannelFactory.cs, HttpRequestChannel.cs:
fix ChannelFactoryBase API; move On(Begin/End)Open() to internal
type and made required changes.
svn path=/trunk/mcs/; revision=149436
2010-01-13 08:28:22 +00:00
Atsushi Eno
ad860bce0a
2010-01-13 Astushi Enomoto <[email protected] >
...
* net_2_1_raw_System.ServiceModel.dll.sources :
add HttpCookieContainerBindingElement.cs.
* HttpCookieContainerBindingElement.cs : new.
* IHttpCookieContainer.cs : fix type name.
* HttpRequestChannel.cs, HttpChannelFactory.cs : support above.
* BasicHttpBinding.cs : add SL3 EnableHttpCookieContainer support.
svn path=/trunk/mcs/; revision=149435
2010-01-13 08:13:43 +00:00
Atsushi Eno
f71285f7ce
2009-12-10 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : avoid adding duplicate headers. Basically
default WebHeaderCollection items are overwritten.
svn path=/trunk/mcs/; revision=148012
2009-12-10 08:22:41 +00:00
Atsushi Eno
ef4a0199b5
2009-12-10 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : when HTTP response was error, do not try
to read message but just raise an error.
svn path=/trunk/mcs/; revision=148011
2009-12-10 07:57:11 +00:00
Atsushi Eno
384a2f519d
2009-12-10 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : WebException.Response might be null.
svn path=/trunk/mcs/; revision=148004
2009-12-10 06:02:50 +00:00
Atsushi Eno
c3f1becc55
2009-12-04 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs : disabled carelessly added
"UseDefaultCredentials = false" line. It blocked basic auth.
svn path=/trunk/mcs/; revision=147645
2009-12-04 09:10:40 +00:00
Atsushi Eno
03e70edb42
2009-12-04 Atsushi Enomoto <[email protected] >
...
* HttpRequestChannel.cs, HttpChannelFactory.cs,
HttpChannelListener.cs, HttpListenerManager.cs :
implemented http client authentication and some of corresponding
service code. Only client works so far.
svn path=/trunk/mcs/; revision=147642
2009-12-04 04:59:54 +00:00
Geoff Norton
3b91c65f57
remove confusing debug spew
...
svn path=/trunk/mcs/; revision=145356
2009-11-04 01:34:04 +00:00
Sebastien Pouliot
8556ef9018
2009-10-15 Sebastien Pouliot <[email protected] >
...
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
support contexts so we call the non-overloaded WaitOne method
(which defaults to false).
svn path=/trunk/mcs/; revision=144200
2009-10-15 12:53:31 +00:00
Jb Evain
fe904e9681
2009-09-30 Jb Evain <[email protected] >
...
* HttpRequestChannel.cs: When compiling for MonoTouch, avoid
to use any of the remoting features.
svn path=/trunk/mcs/; revision=142970
2009-09-30 08:43:02 +00:00
Atsushi Eno
f5d6d3167b
2009-09-06 Atsushi Enomoto <[email protected] >
...
* ContractDescriptionGenerator.cs : default action name is prepended
"urn:", and on the other hand do not add extra '/' in such case.
* HttpRequestChannel.cs : Fix message version member comparison.
Double-quote SOAPAction. Remove extra Exception.
* HttpReplyChannel.cs : ditto for version comparison. Unquote above.
* HttpRequestContext.cs : when addressing is None, remove action
from the message.
svn path=/trunk/mcs/; revision=141394
2009-09-06 10:32:38 +00:00
Atsushi Eno
7a217b8104
2009-08-31 Atsushi Enomoto <[email protected] >
...
* HttpChannelFactory.cs, HttpRequestChannel.cs,
ChannelFactoryBase.cs : fix to previous one; allow null Via uri.
Check ManualAddressing value and reject address-missing ones.
svn path=/trunk/mcs/; revision=140962
2009-08-31 12:26:49 +00:00