在请求标头中发送不同的语言文本 [英] Sending different language text in request headers

查看:57
本文介绍了在请求标头中发送不同的语言文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在创建一个应用程序,该应用程序需要用户输入.我将此输入发送到我的Web服务并在那里进行处理.为了将输入发送到Web服务,我将WebRequest用作:HttpWebRequest request = WebRequest.CreateHttp(serviceUri); 输入作为请求标头发送.当用户输入中文文本并将该文本添加到请求标头时,我遇到了异常.请帮我.我应该允许用户添加多种语言的文本

I am creating an app which takes an input from user. I am sending this input to my web service and processing it there. For sending the input to web service, i am using WebRequest as:  HttpWebRequest request = WebRequest.CreateHttp(serviceUri); and input is sent as request header. When user inputs a Chinese text and while adding that text to request headers, i am getting an exception. Please help me. I should allow user to add text from multiple languages

推荐答案

您能否提供异常详细信息以及一些示例代码来重现此问题?

Can you supply exception details and also some sample code to reproduce the issue?

理想情况下,创建一个非常简单的示例来演示问题.

Ideally create a very simple sample that demonstrates the problem.

-马克


这篇关于在请求标头中发送不同的语言文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆