大请求不通过网络服务
Large request does not go through web service
我有 asp.net 网络服务,我将数据发送到数据库。
我正在发送由 encodeURI 编码的 texteditor(ckeditor) 值。
我的 Web 服务处于 Azure 状态。接下来是问题,当我发送超过 ~1200 个字符时,我收到请求 method:GET 并且在控制台中找不到状态代码 404,如果我发送少量文本,它会通过。
如果我将数据(使用该数据的过程)直接复制到 Web 服务,无论数据大小,它总是通过。
问题出在哪里,是ajax吗?它是网络服务中的东西吗?或网络服务的网络配置,它是天蓝色的吗?
感谢您的帮助。
编辑:这是我调用的程序和我发送的数据的示例
EXECUTE wsBlogUpdate N'1000030',N'Admin',NULL,N'Name',N'Title',N'Subtitle',N'%3Cp%3ELorem%20ipsum%20dolor%20sit%20amet%2C%20consectetur%20adipiscing%20elit.%20Nunc%20vehicula%20urna%20sed%20mauris%20ultrices%20lacinia.%20Integer%20vel%20justo%20auctor%2C%20accumsan%20nibh%20in%2C%20lacinia%20augue.%20Curabitur%20vel%20dui%20quam.%20Duis%20viverra%20justo%20orci%2C%20ut%20vestibulum%20augue%20pellentesque%20eleifend.%20Duis%20in%20magna%20vulputate%2C%20facilisis%20eros%20et%2C%20viverra%20orci.%20Fusce%20ex%20turpis%2C%20ornare%20ac%20dolor%20ut%2C%20accumsan%20malesuada%20ante.%20Maecenas%20suscipit%20elit%20arcu%2C%20sit%20amet%20pulvinar%20sem%20scelerisque%20dignissim.%20Curabitur%20eget%20luctus%20nibh.%20Maecenas%20interdum%20ut%20nunc%20eget%20hendrerit.%20Fusce%20id%20erat%20condimentum%2C%20iaculis%20est%20luctus%2C%20mattis%20justo.%3C%2Fp%3E%3Cp%3ELorem%20ipsum%20dolor%20sit%20amet%2C%20consectetur%20adipiscing%20elit.%20Nunc%20vehicula%20urna%20sed%20mauris%20ultrices%20lacinia.%20Integer%20vel%20justo%20auctor%2C%20accumsan%20nibh%20in%2C%20lacinia%20augue.%20Curabitur%20vel%20dui%20quam.%20Duis%20viverra%20justo%20orci%2C%20ut%20vestibulum%20augue%20pellentesque%20eleifend.%20Duis%20in%20magna%20vulputate%2C%20facilisis%20eros%20et%2C%20viverra%20orci.%20Fusce%20ex%20turpis%2C%20ornare%20ac%20dolor%20ut%2C%20accumsan%20malesuada%20ante.%20Maecenas%20suscipit%20elit%20arcu%2C%20sit%20amet%20pulvinar%20sem%20scelerisque%20dignissim.%20Curabitur%20eget%20luctus%20nibh.%20Maecenas%20interdum%20ut%20nunc%20eget%20hendrerit.%20Fusce%20id%20erat%20condimentum%2C%20iaculis%20est%20luctus%2C%20mattis%20justo.%3C%2Fp%3E',NULL,N'28.03.2016'
解决方案是更改网络配置并添加
<httpRuntime maxQueryStringLength="2097151" />
我有 asp.net 网络服务,我将数据发送到数据库。 我正在发送由 encodeURI 编码的 texteditor(ckeditor) 值。 我的 Web 服务处于 Azure 状态。接下来是问题,当我发送超过 ~1200 个字符时,我收到请求 method:GET 并且在控制台中找不到状态代码 404,如果我发送少量文本,它会通过。
如果我将数据(使用该数据的过程)直接复制到 Web 服务,无论数据大小,它总是通过。
问题出在哪里,是ajax吗?它是网络服务中的东西吗?或网络服务的网络配置,它是天蓝色的吗?
感谢您的帮助。
编辑:这是我调用的程序和我发送的数据的示例
EXECUTE wsBlogUpdate N'1000030',N'Admin',NULL,N'Name',N'Title',N'Subtitle',N'%3Cp%3ELorem%20ipsum%20dolor%20sit%20amet%2C%20consectetur%20adipiscing%20elit.%20Nunc%20vehicula%20urna%20sed%20mauris%20ultrices%20lacinia.%20Integer%20vel%20justo%20auctor%2C%20accumsan%20nibh%20in%2C%20lacinia%20augue.%20Curabitur%20vel%20dui%20quam.%20Duis%20viverra%20justo%20orci%2C%20ut%20vestibulum%20augue%20pellentesque%20eleifend.%20Duis%20in%20magna%20vulputate%2C%20facilisis%20eros%20et%2C%20viverra%20orci.%20Fusce%20ex%20turpis%2C%20ornare%20ac%20dolor%20ut%2C%20accumsan%20malesuada%20ante.%20Maecenas%20suscipit%20elit%20arcu%2C%20sit%20amet%20pulvinar%20sem%20scelerisque%20dignissim.%20Curabitur%20eget%20luctus%20nibh.%20Maecenas%20interdum%20ut%20nunc%20eget%20hendrerit.%20Fusce%20id%20erat%20condimentum%2C%20iaculis%20est%20luctus%2C%20mattis%20justo.%3C%2Fp%3E%3Cp%3ELorem%20ipsum%20dolor%20sit%20amet%2C%20consectetur%20adipiscing%20elit.%20Nunc%20vehicula%20urna%20sed%20mauris%20ultrices%20lacinia.%20Integer%20vel%20justo%20auctor%2C%20accumsan%20nibh%20in%2C%20lacinia%20augue.%20Curabitur%20vel%20dui%20quam.%20Duis%20viverra%20justo%20orci%2C%20ut%20vestibulum%20augue%20pellentesque%20eleifend.%20Duis%20in%20magna%20vulputate%2C%20facilisis%20eros%20et%2C%20viverra%20orci.%20Fusce%20ex%20turpis%2C%20ornare%20ac%20dolor%20ut%2C%20accumsan%20malesuada%20ante.%20Maecenas%20suscipit%20elit%20arcu%2C%20sit%20amet%20pulvinar%20sem%20scelerisque%20dignissim.%20Curabitur%20eget%20luctus%20nibh.%20Maecenas%20interdum%20ut%20nunc%20eget%20hendrerit.%20Fusce%20id%20erat%20condimentum%2C%20iaculis%20est%20luctus%2C%20mattis%20justo.%3C%2Fp%3E',NULL,N'28.03.2016'
解决方案是更改网络配置并添加
<httpRuntime maxQueryStringLength="2097151" />