


PHP uses curl post, garbled code, Taobao mobile curl, precautions, cookie cannot be passed_PHP tutorial
PHP uses curl post garbled code Taobao mobile curl Notes cookie cannot be delivered
1. Error 1: Write cookie to header
$header[] = Cookie:thw=cn; cna=jxdODv2wcTICAXHW0r1CJi0V; t=e41c38cb9ce34bd54ca0f9127fd0c6c2; _m_h5_tk=f32d95cc18037cc4e85986f30bc1b896_143 9816860045; _m_h5_tk_enc=4c378ef9a2bd15c36fe298e4d97f2c75; isg=6F159112174B9D2A7534037C941BACB9; l=AhUVQe19szY/eZ2oB2qU7YA-BRvPEskk; mt=ci= 95_1&cyk=6_0; uc3=nk2=tYnHu8hArvY=&id2=UojVefKwbP4UpQ==&vt3=F8dASM73BUQROnIccBg=&lg2=URm48syIIVrSKA==; lgc=u81F4u96C5u5BB6u88C5; tracknick=u81F4u96C5u5BB6u88C5; _cc_= WqG3DMC9EA==; tg=0; WAPDFDTGFG=+4dRjM5djSecKyo4JwyfyQ==; inezing_session=hZ74oZcbReopUkkMvnXi8ZIE_143981251297240BQ_2; v=0;
cookie2=1c2f5b3c1b855ca7348e9e4ca4148593;
$cookie_jar = dirname(__FILE__)./pic.cookie;
//Save cookie
//curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie_jar);
Correct
2 Error 2 Put gzip in the header file (copied from firebug)
$header[] = Accept-Encoding: gzip, deflate;
//Correct $header[] = Accept-Encoding: deflate;
3 Error 3, encoding is not uniform
Correct
$header[] = content-type: application/x-www-form-urlencoded; charset=UTF-8;
----------------------------------
$header[0] = Accept:text/html,application/xhtml xml,application/xml;q=0.9,*/*;q=0.8;
$header[] = content-type: application/x-www-form-urlencoded; charset=UTF-8;
//$header[] = Accept-Encoding: gzip, deflate;
$header[] = Accept-Encoding: deflate;
$header[] = Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3;
$header[] = Cache-Control: max-age=0;
$header[] = Connection: keep-alive;
$header[] = Host: api.m.taobao.com;
$header[] = User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0;
$header[] = X-FireLogger: 1.3;
$header = array();
$header = array(
content-type: application/x-www-form-urlencoded;
charset=UTF-8
);
$header = array();
$header[] = content-type: application/x-www-form-urlencoded;
charset=UTF-8;
//if (!is_null($proxy)) { curl_setopt ($curl, CURLOPT_PROXY, $proxy); }
//echo curl:.$url . ;
curl_setopt($curl, CURLOPT_URL, $thisurl);
//curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0');
//Googlebot/2.1 (http://www.google.com/bot.html) This doesn’t work
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
//curl_setopt($curl, CURLOPT_REFERER, 'http://shop.m.taobao.com/shop/shop_index.htm?spm=0.0.0.0&shop_id=112980512');
//curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$cookie_jar = dirname(__FILE__)./pic.cookie;
//Save cookie
//curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie_jar);
------------------------------------------------- -
The cookie file corresponding to curl, saved as firebug cookie is also in this format
.taobao.com TRUE / FALSE 1440424369 _m_h5_tk 33e31638cebf21c7da7e1317268de2de_1439823175070
.taobao.com TRUE / FALSE 1440424370 _m_h5_tk_enc db32837cf0f1244e04d777f332766b54

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The 2024 Taobao free order event will be held three times a day. Everyone needs to place an order and pay for the corresponding amount of goods at the corresponding time. The free order amount will be distributed in the form of red envelopes of equal amounts. Next, we will bring you how to receive the Taobao free order red envelope in 2024: grab it For users who are free of charge, the red envelope qualification will be issued to the card and coupon package, which is in a state of activation; the web version of Taobao currently does not have the card and coupon package, and only displays the winning records of the free order event; the card and coupon package is in [Taobao APP-My Taobao] -My Rights-Red Envelope]. How to get red envelopes for free orders on Taobao 20241. For users who grab free orders, the red envelope qualifications will be distributed to the card and coupon packages, which are in a state of waiting for activation; 2. The web version of Taobao currently does not have card and coupon packages, and only displays the winning records of the free order activities. ;3. The card coupon package is in [Taobao APP-My Taobao-My Rights-Red Envelope]

1. Open the Taobao app, click [My Taobao] in the lower right corner, and click [Settings] in the upper right corner. 2. Select [Merchant Settlement], click [Open Taobao Store], and select [General Merchant]. 3. In the [Free Store Opening] interface, users can see the specific process of opening a [Personal Merchant] store. 4. Name your store, then click [Open a store], check all three items, and click [Open a store for 0 yuan]. 5. Finally complete [Real Person Authentication] and complete [Basic Store Information] to successfully open a store.

Taobao is a commonly used online shopping software for many friends. You usually place orders and purchase many things from Taobao. It provides users with a red envelope reminder function. Some friends want to turn it off, so hurry up and check out the PHP Chinese website. Take a look. List of steps to turn off red envelope reminders on Taobao 1. Open the personal center of Taobao APP and select the [Settings] button to enter the page. 2. Find the [Message Notification] option. Here you can select the message push switch. Find the red envelope message and turn off the switch. 3. Or you can turn off the notification permission of Taobao APP through the settings page of your mobile phone, so that all messages from Taobao will not enter the push and can only be seen after turning it on. 4. Users can set what types of messages they want to receive, which makes it easier to use.

The name change function allows users to freely change their names and nicknames in Taobao. Some users do not know how to change their names on Taobao. Just click on the Taobao account of the avatar in the settings in My Taobao to modify it. Next, the editor will bring it to you This is an introduction to how to change your name and nickname. If you don’t know yet, please download it and give it a try. Taobao usage tutorial How to change Taobao name Answer: Click on the Taobao account of the avatar in the settings in My Taobao to modify it. Details: 1. Enter Taobao and click [My Taobao] on the lower right. 2. Click the [Settings] icon on the upper right. 3. Click the avatar. 4. Click [Taobao Account] again. 5. Click [Modify Account Name], enter and modify it.

How to use Taobao 510 free red envelope? Taobao recently launched a free order event to celebrate its 510th anniversary. This event allows you to get free order red envelopes, and there are many benefits. I believe many friends want to participate in this event. Some friends have already received free order red envelopes, but they are not. If you know the specific usage, let’s take a look at the relevant introduction today. Instructions for using Taobao’s 510th Anniversary Free Order Red Packet: The free order red pack can be used after all orders placed for guessing questions have been confirmed and received. 1. Users can issue and recover free red envelopes through the web version of Taobao. Currently, there is no card and coupon package, but it can be viewed at [Taobao APP-My Taobao-My Rights-Red Envelopes]. For users who grab the free order, the red envelope qualification will be distributed to the card and coupon package, which is in a state of activation; the card and coupon package is in progress for winning prizes.

When shopping on Taobao, we often use free red envelopes to enjoy discounts. But if we need a refund, will these free red envelopes be returned? Let's take a look at the answer to this question. Will Taobao's free red envelopes be refunded? Depending on the situation, when you receive a red envelope, the red envelope is in a pending activation state. Before redeeming the product, the to-be-activated red envelope is not activated and cannot be used temporarily. You will wait until receipt of the purchased goods is confirmed. , the red envelope that needs to be activated can be used. If there is a problem with the product after using the free red envelope and it needs to be returned, the return of the red envelope needs to be judged according to the actual situation: 1. Refund Rules 11. If a refund occurs after the red envelope is used, the red envelope will be returned in proportion. 2. If the red envelope is not overdue, the period of use of the returned red envelope is the original period of use. If it is overdue, it will be issued within 7 days.

The mobile Taobao app software provides a lot of good products. You can buy them anytime and anywhere, and everything is genuine. The price tag of each product is clear. There are no complicated operations at all, making you enjoy more convenient shopping. . You can search and purchase freely as you like. The product sections of different categories are all open. Add your personal delivery address and contact number to facilitate the courier company to contact you, and check the latest logistics trends in real time. Then some new users are using it for the first time. If you don’t know how to search for products, of course you only need to enter keywords in the search bar to find all the product results. You can’t stop shopping freely. Now the editor will provide detailed online methods for mobile Taobao users to search for store names. 1. First open the Taobao app on your mobile phone,

During the Mingchao test, please avoid system upgrades, factory resets, and parts replacement to prevent information loss and abnormal game login. Special reminder: There is no appeal channel during the testing period, so please handle it with caution. Introduction to matters needing attention during the Mingchao test: Do not upgrade the system, restore factory settings, replace equipment components, etc. Notes: 1. Please upgrade the system carefully during the test period to avoid information loss. 2. If the system is updated, it may cause the problem of being unable to log in to the game. 3. At this stage, the appeal channel has not yet been opened. Players are advised to choose whether to upgrade at their own discretion. 4. At the same time, one game account can only be used with one Android device and one PC. 5. It is recommended that you wait until the test is completed before upgrading the mobile phone system or restoring factory settings or replacing the device.
