我使用以下代码获取产品表单
Dim Req As WebRequest = WebRequest.Create("http://mysite.com/api/products/10047")
Req.Method = "GET"
Req.Credentials = New NetworkCredential("????????????????????????????????", "")
Dim Resp As HttpWebResponse = CType(Req.GetResponse(), HttpWebResponse)
If Resp.StatusCode = HttpStatusCode.OK Then
Dim dataStream As Stream = Resp.GetResponseStream()
Dim reader As New StreamReader(dataStream)
Dim R As String = reader.ReadToEnd()
MsgBox(R)
reader.Close()
dataStream.Close()
Else
MsgBox(Resp.StatusCode & vbCrLf & Resp.StatusDescription)
End If
Resp.Close()
我从数据库中获取了10047产品的所有信息。
如何更新此产品的价格?