It's strange that ecshop does not know how to submit and add product data

Source: Internet
Author: User
It is really strange that ecshop does not know how to submit the add product data when adding the product, I grabbed the next package; the data is as follows.
When the request is submitted, act is equal to insert.
But ecshop still calls the add page.

And found in request_playload

------ WebKitFormBoundaryGOLQryEg8iRpGIYC
Content-Disposition: form-data; name = "act"

Insert

It's strange that I have never seen such a submission method; I don't know how to implement it. I checked the ecshop js, as if it was implemented using the fckeditor control. The compressed JavaScript code is hard to understand. Thank you for your explanation !!

Request URL: http: // 127.0.0.1/ecshop/admin/goods. php? Act = add
Request Method: POST
Status Codes: 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 = Beijing
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"

Elasticsearch guíâ ² 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


Reply to discussion (solution)

Upstairs bored people making advertisements!

Shape

------WebKitFormBoundaryGOLQryEg8iRpGIYCContent-Disposition: form-data; name="brand_id"1

Is the data segment
Where:
---- WebKitFormBoundaryGOLQryEg8iRpGIYC separator, indicating the start of a paragraph (or the end of the previous paragraph)
Delimiters are dynamically generated.
Content-Type: multipart/form-data; boundary = ---- WebKitFormBoundaryGOLQryEg8iRpGIYC
Content-Disposition: form-data; name = "brand_id" indicates the field name.
Last value

There are several data transmission formats in the http protocol, one of which is
Unless you want to use Socket programming for data transmission, there is no need to understand these details

Ecshop has a lot of content to add items, but it is a PHP file directly submitted to this page, and has nothing to do with js.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.