post请求一个数据,au3格式怎么写
用抓包工具抓出来数据类型是Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryT38GcciwBBzb3Apo表单类型,想知道用au3怎么写下面这段数据------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_token"
ZORAPzPDkrCqYwMFIRXDc8qi2j22BHiEz2KKkdRw
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="company_id"
1
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="asset_tags"
BM-00000011
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="serials"
xuliehao
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="model_id"
1
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_snipeit_aeeuaocc_13"
3344
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_snipeit_cpu_4"
cpu
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_snipeit_aa_5"
内存
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_snipeit_aea_7"
显卡
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_snipeit_cc_6"
硬盘
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="_snipeit_euaoaee_12"
固定资产
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="status_id"
2
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="checkout_to_type"
user
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="assigned_user"
2
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="assigned_asset"
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="assigned_location"
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="name"
资产名称-台式电脑
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="purchase_date"
2021-11-21
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="supplier_id"
3
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="order_number"
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="purchase_cost"
10000
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="warranty_months"
36
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="notes"
测试备注
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="rtd_location_id"
1
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="image"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryT38GcciwBBzb3Apo
Content-Disposition: form-data; name="image"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryT38GcciwBBzb3Apo--
原样发送
~~ 本帖最后由 qw5838132 于 2021-11-22 09:35 编辑
已解决,用换行符
$biaodan ='------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_token"' _
&@CRLF _
&@CRLF&''&$html&'' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="company_id"' _
&@CRLF _
&@CRLF&'1' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="asset_tags"' _
&@CRLF _
&@CRLF&'BM-00000013' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="serials"' _
&@CRLF _
&@CRLF&'xuliehao2' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="model_id"' _
&@CRLF _
&@CRLF&'1' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_snipeit_aeeuaocc_13"' _
&@CRLF _
&@CRLF&'3344' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_snipeit_cpu_4"' _
&@CRLF _
&@CRLF&'cpu' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_snipeit_aa_5"' _
&@CRLF _
&@CRLF&'内存' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_snipeit_aea_7"' _
&@CRLF _
&@CRLF&'显卡' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_snipeit_cc_6"' _
&@CRLF _
&@CRLF&'硬盘' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="_snipeit_euaoaee_12"' _
&@CRLF _
&@CRLF&'固定资产' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="status_id"' _
&@CRLF _
&@CRLF&'2' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="checkout_to_type"' _
&@CRLF _
&@CRLF&'user' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="assigned_user"' _
&@CRLF _
&@CRLF&'2' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="assigned_asset"' _
&@CRLF _
&@CRLF _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="assigned_location"' _
&@CRLF _
&@CRLF _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="name"' _
&@CRLF _
&@CRLF&'资产名称-台式电脑' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="purchase_date"' _
&@CRLF _
&@CRLF&'2021-11-21' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="supplier_id"' _
&@CRLF _
&@CRLF&'3' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="order_number"' _
&@CRLF _
&@CRLF _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="purchase_cost"' _
&@CRLF _
&@CRLF&'10000' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="warranty_months"' _
&@CRLF _
&@CRLF&'36' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="notes"' _
&@CRLF _
&@CRLF&'备注' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="rtd_location_id"' _
&@CRLF _
&@CRLF&'1' _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="image"; filename=""' _
&@CRLF&'Content-Type: application/octet-stream' _
&@CRLF _
&@CRLF _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo' _
&@CRLF&'Content-Disposition: form-data; name="image"; filename=""' _
&@CRLF&'Content-Type: application/octet-stream' _
&@CRLF _
&@CRLF _
&@CRLF&'------WebKitFormBoundaryT38GcciwBBzb3Apo--'
页:
[1]