Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / HttpPostServerProtocol.cs / 1305376 / HttpPostServerProtocol.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpPostServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "POST") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpPostServerProtocol(); } } internal class HttpPostServerProtocol : HttpServerProtocol { internal HttpPostServerProtocol() : base(true) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpPostServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "POST") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpPostServerProtocol(); } } internal class HttpPostServerProtocol : HttpServerProtocol { internal HttpPostServerProtocol() : base(true) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrokeCollection2.cs
- AnyReturnReader.cs
- SafeMILHandleMemoryPressure.cs
- ChainOfResponsibility.cs
- ChannelBinding.cs
- ValidationHelpers.cs
- _LocalDataStore.cs
- TransactionScope.cs
- ProtocolsConfigurationEntry.cs
- WinFormsSpinner.cs
- MouseEventArgs.cs
- HtmlInputText.cs
- XsdBuildProvider.cs
- AttachedProperty.cs
- EventEntry.cs
- SessionState.cs
- HotSpot.cs
- PrivilegeNotHeldException.cs
- FormDocumentDesigner.cs
- GatewayDefinition.cs
- Tracer.cs
- ConfigXmlSignificantWhitespace.cs
- DescendantOverDescendantQuery.cs
- DBSchemaRow.cs
- ExtenderControl.cs
- ImportOptions.cs
- ObjectConverter.cs
- TextEditorCopyPaste.cs
- TextLineBreak.cs
- TraceListeners.cs
- TokenCreationParameter.cs
- Path.cs
- SyndicationDeserializer.cs
- DesignerLoader.cs
- SeverityFilter.cs
- SplitterEvent.cs
- ConstrainedGroup.cs
- COM2Properties.cs
- DurationConverter.cs
- ExpandableObjectConverter.cs
- ToolStripGrip.cs
- AxHost.cs
- RsaSecurityKey.cs
- x509utils.cs
- OrderingExpression.cs
- QilCloneVisitor.cs
- SafeBitVector32.cs
- FileNotFoundException.cs
- ColumnResult.cs
- SingleObjectCollection.cs
- BitmapEffect.cs
- sqlser.cs
- StreamingContext.cs
- CallbackValidator.cs
- CategoryNameCollection.cs
- CssTextWriter.cs
- CryptoStream.cs
- SectionUpdates.cs
- ContainerUIElement3D.cs
- FilterException.cs
- Drawing.cs
- DetailsViewInsertedEventArgs.cs
- TypeSystemHelpers.cs
- DragAssistanceManager.cs
- EventSetter.cs
- _ConnectOverlappedAsyncResult.cs
- PropertyInfo.cs
- BinaryReader.cs
- UniqueIdentifierService.cs
- CompressStream.cs
- InheritanceRules.cs
- SimpleMailWebEventProvider.cs
- arclist.cs
- ComProxy.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ValidatorCollection.cs
- SystemUnicastIPAddressInformation.cs
- RouteItem.cs
- COM2ExtendedTypeConverter.cs
- MailAddressCollection.cs
- ParentQuery.cs
- Popup.cs
- RowToFieldTransformer.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ConfigurationSettings.cs
- MessageQueueConverter.cs
- TextHidden.cs
- MetafileHeaderWmf.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- MemberDescriptor.cs
- ConnectionManagementElement.cs
- FragmentQuery.cs
- FormatPage.cs
- EntityDataSourceMemberPath.cs
- FileInfo.cs
- TabletDeviceInfo.cs
- CSharpCodeProvider.cs
- EditorOptionAttribute.cs
- CodeThrowExceptionStatement.cs
- TouchPoint.cs