作者checkIO (chec)
看板C_Sharp
标题Re: [问题] c#登入api
时间Wed Oct 19 16:54:55 2016
※ 引述《MOONY135 (谈无慾)》之铭言:
: 大家好 最近刚要学call web api
: 以下是我的疑问
: post使用的是64base Encode 送出
: 回传的值是json
: https://gist.github.com/Aix-Shiao/bf7df4258cfb935fca06bafde3c14551
: 以上是我的code
: string postData = "myjson";
: myjson 是我将
: {"account":"[email protected]",
: "password":"pass1234"}
: 这串json 丢入
: https://www.base64encode.org/ 这个网址产生出来的
: =======================
: 我想问说
: sting postDate ->
: byte[] postDataBytes ->
: Convert.ToBase64String(postDataBytes)->
: Convert.FromBase64String(returnValue);
: 不知道这样的转换逻辑是否有问题?
: 错误代码一直是无post资料
感谢大大 目前也遇到同样的问题...
不过我目前需要的是 post "account":"
[email protected]" 跟一个zip档
应该是多重类型 不知道大大有没有研究呢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.124.46.66
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1476867296.A.723.html