Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / HttpPostLocalhostServerProtocol.cs / 1305376 / HttpPostLocalhostServerProtocol.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { using System.Net; internal class HttpPostLocalhostServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "POST") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); bool isLocal = request.Url.IsLoopback || request.IsLocal; if (!isLocal) return null; return new HttpPostServerProtocol(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PackagePart.cs
- AsyncStreamReader.cs
- HttpApplicationFactory.cs
- Ipv6Element.cs
- ThreadNeutralSemaphore.cs
- BuildResult.cs
- PassportAuthentication.cs
- SessionPageStatePersister.cs
- BindingExpressionUncommonField.cs
- ToolStripSplitButton.cs
- WebPartAuthorizationEventArgs.cs
- COAUTHIDENTITY.cs
- DatatypeImplementation.cs
- LicenseProviderAttribute.cs
- WebPartConnectionCollection.cs
- TransactionInterop.cs
- MailAddressCollection.cs
- SharedPersonalizationStateInfo.cs
- RuleAttributes.cs
- SwitchCase.cs
- TextParagraphView.cs
- IsolatedStorageException.cs
- EntityParameterCollection.cs
- HyperLinkDataBindingHandler.cs
- Listbox.cs
- DesignerCategoryAttribute.cs
- TypeConstant.cs
- TextPointer.cs
- FixedTextPointer.cs
- XLinq.cs
- SqlCacheDependency.cs
- DataChangedEventManager.cs
- InputLanguageManager.cs
- JsonSerializer.cs
- ImageMap.cs
- AttachedAnnotation.cs
- filewebresponse.cs
- FirstMatchCodeGroup.cs
- Helper.cs
- SqlIdentifier.cs
- SqlTopReducer.cs
- NameHandler.cs
- DataKeyCollection.cs
- DerivedKeySecurityTokenStub.cs
- LinqDataSourceValidationException.cs
- IISMapPath.cs
- XsltArgumentList.cs
- ConstNode.cs
- ParseChildrenAsPropertiesAttribute.cs
- UserPreferenceChangedEventArgs.cs
- XamlStream.cs
- HighContrastHelper.cs
- WindowsPen.cs
- ComboBoxAutomationPeer.cs
- HtmlAnchor.cs
- DocobjHost.cs
- DbProviderServices.cs
- WSHttpBindingBase.cs
- NativeWrapper.cs
- XmlSchemaException.cs
- OleDbParameter.cs
- SliderAutomationPeer.cs
- XPathNodePointer.cs
- FullTextLine.cs
- DnsPermission.cs
- PackagingUtilities.cs
- CustomExpression.cs
- BufferedReadStream.cs
- CryptographicAttribute.cs
- columnmapfactory.cs
- SQLInt64Storage.cs
- CustomErrorCollection.cs
- NativeMethods.cs
- hresults.cs
- Html32TextWriter.cs
- OrderByBuilder.cs
- SerializerWriterEventHandlers.cs
- Lease.cs
- SelectionProviderWrapper.cs
- WebPartManager.cs
- RegexCapture.cs
- XPathBuilder.cs
- InternalPolicyElement.cs
- cookiecollection.cs
- TraceHandler.cs
- OAVariantLib.cs
- CodeTypeReference.cs
- FontSizeConverter.cs
- AppDomainShutdownMonitor.cs
- ValidationManager.cs
- SchemaElementLookUpTable.cs
- SafeCoTaskMem.cs
- NetworkInformationPermission.cs
- XmlMtomWriter.cs
- SafeMILHandleMemoryPressure.cs
- DataGridViewToolTip.cs
- LoginUtil.cs
- SafeArrayRankMismatchException.cs
- FrameworkContentElementAutomationPeer.cs
- ActivityWithResultValueSerializer.cs