html %3cp%3e%3c p%3e,WCF字符串输入长度

[OperationContract]

[WebGet(ResponseFormat = WebMessageFormat.Json)]

bool SendEmail(string mailMessage);

我打电话这样的:(很长 - 直出铬调试器)

http://localhost:8093/AnnualReviewService/json/SendEmail?callback=json_Callback0&mailMessage={%22From%22:{%22address%22:%[email protected]%22},%22To%22:[],%22Bcc%22:[{%22address%22:%[email protected]%22},{%22address%22:%[email protected]%22},{%22address%22:%[email protected]%22},{%22address%22:%[email protected]%22},{%22address%22:%[email protected]%22},{%22address%22:%[email protected]%22},{%22address%22:%[email protected]%22}],%22CC%22:[],%22Priority%22:2,%22Subject%22:%22Important!%20Peer%20Feedback%20Needed%22,%22Body%22:%22\n\t\t\t%3Cp%3E%3Cb%3EAll,%20%3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E%3Cb%3E %3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E%3Cb%20class=\%22ng-binding\%22%3EI%20am%20reaching%20out%20to%20you%20to%20request%20very%20targeted\n\t\t\t\tfeedback%20for%20Fake%20User.%20You%20have%20been%20chosen%20due%20to%20your%20experience\n\t\t\t\tworking%20with%20this%20person.%20This%20feedback%20is%20kept%20anonymous,%20and%20its%20intent%20is%20to%20not\n\t\t\t\tonly%20point%20out%20the%20areas%20where%20this%20person%20excels,%20but%20to%20also%20offer%20some\n\t\t\t\tconstructive%20feedback.%3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E%3Cb%3E %3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E%3Cb%3EIt%20is%20very%20important%20that%20each%20of%20you%20take%20the%20time%20in\n\t\t\t\tthe%20next%20couple%20of%20days%20to%20provide%20me%20this%20feedback.%3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E%3Cb%3E %3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E%3Cb%3EThank%20you!%3C/b%3E%3C/p%3E\n\t\t\t\t%3Cp%3E %3C/p%3E\n\t\t%20%20%22,%22IsBodyHtml%22:true}

当我调试我看到过in是这样的:

"{\"From\":{\"address\":\"[email protected]\"},\"To\":[],\"Bcc\":[{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"},{\"address\":\"[email protected]\"}],\"CC\":[],\"Priority\":2,\"Subject\":\"Important! Peer Feedback Needed\",\"Body\":\"\\n\\t\\t\\t

All,

\\n\\t\\t\\t\\t

"

有什么限制我可以通过吗?我没有找到任何有意义的东西。

这是.NET 4.5

编辑 如果是有极限的,你可以请提供一个链接,它被记录在案

谢谢

2014-02-16

Wjdavis5

+0

您的URL长度为1629年,而IEEE规定的URL最长为2048年,它足以在WCF中超过一定的限制。 –

+0

@ScottChamberlain谢谢你的回复 - 可以说'有些限制'是你记录在任何你知道的吗? –

+0

我能找到的唯一记录的限制是[URL的2048年的一般限制](http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different -browsers)。 –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值