您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

真奇怪 ecshop不知道怎样提交添加商品数据的

2025/3/14 5:29:10发布14次查看
添加商品的时候,我抓了下包;数据如下。
提交处理的时候,act是等于insert才对的。
可ecshop  却依然调用了添加页面的 add。
而在request_playload中 发现了
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=act
insert
真是奇怪,没看过这样的提交方式;不知道是怎样实现的。  查了ecshop的js,好像是用fckeditor控件来实现的。压缩了的js狠难理解。 求高人解释  谢谢!!
request url:http://127.0.0.1/ecshop/admin/goods.php?act=add
request method:post
status code:200 ok
request headersview source
accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-encoding:gzip,deflate,sdch
accept-language:zh-cn,zh;q=0.8
cache-control:max-age=0
connection:keep-alive
content-length:5449
content-type:multipart/form-data; boundary=----webkitformboundarygolqryeg8irpgiyc
cookie:ecs_lastcheckorder=tue%2c%2027%20aug%202013%2002%3a37%3a55%20gmt; ecs[visit_times]=2; ecscp_id=4b60487471b9cb778258d82e6f44c5685cd773e8
host:127.0.0.1
origin:http://127.0.0.1
referer:http://127.0.0.1/ecshop/admin/goods.php?act=add
user-agent:mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/29.0.1547.57 safari/537.36
query string parametersview sourceview url encoded
act:add
request payload
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=max_file_size
2097152
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_name
mingcheng
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_name_color
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_name_style
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_sn
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=cat_id
7
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=addedcategoryname
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=brand_id
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=addedbrandname
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=suppliers_id
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=shop_price
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=user_price[]
-1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=user_rank[]
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=user_price[]
-1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=user_rank[]
3
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=user_price[]
-1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=user_rank[]
2
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=volume_number[]
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=volume_price[]
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=market_price
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=give_integral
-1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=rank_integral
-1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=integral
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=promote_start_date
2013-08-27
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=promote_end_date
2013-09-27
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_img; filename=
content-type: application/octet-stream
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_img_url
éìæ·í¼æ¬íⲿurl
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=auto_thumb
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_desc
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_weight
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=weight_unit
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_number
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=warn_number
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=is_on_sale
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=is_alone_sale
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=keywords
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_brief
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=seller_note
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_type
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=img_desc[]
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=img_url[]; filename=
content-type: application/octet-stream
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=img_file[]
»òõßêäèëíâ²¿í¼æ¬á´½óµøö·
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=cat_id1
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=brand_id1
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=keyword1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=is_single
1
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=cat_id2
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=brand_id2
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=keyword2
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=price2
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=article_title
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=goods_id
0
------webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=act
insert
------webkitformboundarygolqryeg8irpgiyc--
response headersview source
cache-control:no-cache, must-revalidate
connection:keep-alive
content-type:text/html; charset=gbk
date:tue, 27 aug 2013 02:38:31 gmt
expires:fri, 14 mar 1980 20:53:00 gmt
keep-alive:timeout=5, max=99
last-modified:tue, 27 aug 2013 02:38:31 gmt
pragma:no-cache
server:apache/2.2.4 (win32) php/5.2.3
set-cookie:ecscp[last_choose]=7%7c1; expires=wed, 28-aug-2013 02:38:32 gmt
transfer-encoding:chunked
x-powered-by:php/5.2.3
回复讨论(解决方案) 楼上无聊人发广告 !
形如 ------webkitformboundarygolqryeg8irpgiyccontent-disposition: form-data; name=brand_id1
的是数据段
其中:
----webkitformboundarygolqryeg8irpgiyc 分隔符,表示一段开始(也可以说是上一段结束)
分隔符是动态产生的,这样申明的
content-type:multipart/form-data; boundary=----webkitformboundarygolqryeg8irpgiyc
content-disposition: form-data; name=brand_id 一个字段,name 属性指示字段名
最后是值
http 协议中传送数据的格式有好几种,这是其中的一种
除非你想用 socket 编程实现数据传输,并无了解这些细节的必要
ecshop添加商品的内容相对较多,但是是直接提交到本页面的php文件,和js无关。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product