我正在尝试将 JSON 内容发布到 Web 服务。它在 POSTER(firefox 插件)和HTTP 客户端(Mac)上运行良好,但在尝试从 XCode(iOS 应用程序)POST 时抛出 500-Internal Server Error。有人可以帮我解决这个问题。
请求详细信息是:-
HTTP 方法:POST
内容类型:应用程序/json
HTTP 正文:
{
"HasSunRoof" : "true",
"HasTiltWheel" : "true",
"VIN" : "XXXXXXXXXXXXXXX",
"VoluntarySignatureComments" : "Voluntary sign comments",
"Make" : "Audi",
"IsVinManuallyEntered" : "false",
"AssociatedCompanyId" : "2",
"ReposessionMethod" : "Voluntary with release",
"HasKeys" : "true",
"CreatedBy" : "RAMBO",
"InteriorCondition" : "Poor",
"HasPowerWindows" : "true",
"GlassCondition" : "Good",
"TransmissionType" : "Auto",
"EngineType" : "EngineType1",
"RecoveredFromAddress1" : "Myaddress1",
"CompanyId" : "1",
"HasPowerSeats" : "true",
"HasAirConditioning" : "true",
"Mileage" : "1243",
"HasCruiseControl" : "true",
"Trim" : "Trim data",
"HasRadio" : "true",
"HasSpares" : "true",
"FuelType" : "Alternative Fuel",
"IsDriveReady" : "true",
"TireCondition" : "Average",
"IsActive" : "false",
"CreatedOn" : "5\/24\/12",
"RecoveredFromAddress2" : "Myaddress2",
"IsRunnable" : "true",
"RecoveredFromState" : "Mystate",
"BodyStyle" : "Style1",
"RecoveredFromZip" : "90009",
"IsVoluntary" : "false",
"InteriorConditionDescription" : "Poor interiors",
"RecoveredFromCity" : "Mycity",
"Model" : "A6",
"Year" : "2009"
}
编辑:已解决请参阅下文以修复我的 noobish 错误。