有一个函数: array get_headers ( string $url [, int $format = 0 ] ) Parameters url The target URL. format If the optional format parameter is set to non-zero, get_headers() parses the response and sets the array's keys. 设置为非0返会解析响应关联数组. Return Values Retur
实体类 public class User { public int Id { get; set; } public string Name { get; set; } public int Age { get; set; } } 2.webthod方法 [WebMethod] public static User Insert(string q, User user) { return new U