好友
阅读权限10
听众
最后登录1970-1-1
|
上一条返回来的内容:[{"statusCode":200,"type":"rpc","tid":2,"ref":false,"action":"ICS_WR_Warranty_Create_Agent_Controller","method":"calPMFTSystem","result":{"BoxTrayIndicator":"Boxed","Error":"false","Last_Ship_To_Date":"2017-05-25 00:00:00","ProductFrequencyData":[{"FreqeuncyCount":1,"FrequencyType":"ATPO"}],"ShipmentInfo":[{"AGIDDate":"2017-05-25T01:42:11-07:00","Batch":"L709C055","BoxTrayIndicator":"BOX","ChildBoxId":"804327398","Level4Prod":"BX80677I77700K","MaterialMasterNumber":"953655","ShipToCustomerCountryCode":"NL","ShipToCustomerCountryName":"Netherlands","ShipToCustomerGeo":"EMEA","VisualId":"U7NH442803139"}],"ValIDAtionResultCodes":[{"Remarks":" ","ValidationResult_Code":"PMFT-028","ValidationResultCodeId":28},{"Remarks":"","ValidationResult_Code":"PMFT-027","ValidationResultCodeId":27},{"Remarks":"","ValidationResult_Code":"PMFT-035","ValidationResultCodeId":35},{"Remarks":" ","ValidationResult_Code":"PMFT-015","ValidationResultCodeId":15},{"Remarks":"","ValidationResult_Code":"PMFT-034","ValidationResultCodeId":34}]}}]
下一条准备提交的内容:
{"action":"ICS_WR_Warranty_Create_Agent_Controller","method":"doWarrantyCheckProcessor","data":["{\"BoxTrayIndicator\":\"Boxed\",\"Error\":\"false\",\"Last_Ship_To_Date\":\"2017-05-25 00:00:00\",\"ProductFrequencyData\":[{\"FreqeuncyCount\":1,\"FrequencyType\":\"ATPO\"}],\"ShipmentInfo\":[{\"AGIDDate\":\"2017-05-25T01:42:11-07:00\",\"Batch\":\"L709C055\",\"BoxTrayIndicator\":\"BOX\",\"ChildBoxId\":\"804327398\",\"Level4Prod\":\"BX80677I77700K\",\"MaterialMasterNumber\":\"953655\",\"ShipToCustomerCountryCode\":\"NL\",\"ShipToCustomerCountryName\":\"Netherlands\",\"ShipToCustomerGeo\":\"EMEA\",\"VisualId\":\"U7NH442803139\"}],\"ValidationResultCodes\":[{\"Remarks\":\" \",\"ValidationResult_Code\":\"PMFT-028\",\"ValidationResultCodeId\":28},{\"Remarks\":\"\",\"ValidationResult_Code\":\"PMFT-027\",\"ValidationResultCodeId\":27},{\"Remarks\":\"\",\"ValidationResult_Code\":\"PMFT-035\",\"ValidationResultCodeId\":35},{\"Remarks\":\" \",\"ValidationResult_Code\":\"PMFT-015\",\"ValidationResultCodeId\":15},{\"Remarks\":\"\",\"ValidationResult_Code\":\"PMFT-034\",\"ValidationResultCodeId\":34}]}","{\"validateMainLineItem\":1000,\"validateProductId\":\"01t0P0000026L2QQAU\",\"validateProductType\":\"Processor\",\"strFpoNumber\":\"L709C055\",\"strAtpoNumber\":\"U7NH442803139\",\"mmid\":\"953655\"}","953655","BX80677I77700K","","",false],"type":"rpc","tid":3,"ctx":{"csrf":"VmpFPSxNakF4T1MweE1DMHhOVlF3T1Rvd05Eb3dPQzQwTVRaYSw3VTNjM0NiYmJ4ellWSXBEeTRPbGhOLE9UZzBOV1Zt","vid":"0660P000000yK7w","ns":"","ver":38}}
如何利用python的优势巧妙的组装成一个POST-DATA提交的数据?利用的是requests库
目前遇到的问题就是:提交的时候data参数里的引号需要带\" 我用json组装完之后 就没有 \" 导致提交失败 以上是完整提交的内容! |
|