Solve the Express 100 ordinary key can not query Shun Fung, Shentong and other express problems

Source: Internet
Author: User

has been in other sections and Mycncart official website plug-in area provides a download plugin, this paste is only for the Express 100 interface for analysis and processing
----------------------------------------------------------------------------------------------------------- ---------------------------
all know the Express 100 interface upgrade, the use of ordinary key is unable to query to EMS, Shun Fung, Shentong and other Express company logistics information.
and need to use the Htmlapi interface to call,

http://www.kuaidi100.com/applyurl?key=[]&com=[]&nu=[]

Then this interface returns an address URL

650) this.width=650; "id=" aimg_227 "src=" http://mycncart.cn/data/attachment/forum/201512/12/ 114838hvyyzk1ak9vko91o.png "class=" Zoom "width=" "style=" border:0px; alt= "114838hvyyzk1ak9vko91o.png"/>

Through the capture of this URL, it opened the page when there are multiple requests, where a request to return the response data is the logistics information

650) this.width=650; "id=" aimg_228 "src=" http://mycncart.cn/data/attachment/forum/201512/12/ 115129sbmob7xl0fbuw50b.png "class=" Zoom "width=" "style=" border:0px; alt= "115129sbmob7xl0fbuw50b.png"/>


So when we know, can we call this interface directly?

After the parameter is assembled again to access this address

http://www.kuaidi100.com/query?id=1&type=ems&postid=ED735359932IN&valicode=&temp= 0.4958606243599206

is valid for a certain period of time, but then returns an error message:

650) this.width=650; "id=" aimg_229 "src=" http://mycncart.cn/data/attachment/forum/201512/12/ 115350sw865rozzzkk98lq.png "class=" Zoom "width=" "style=" border:0px; alt= "115350sw865rozzzkk98lq.png"/>

Some people will find it strange, obviously can grasp the packet to see the data is this address, why the general data to find out, and some people will feel that parameter tmp that time stamp problem ...

I try to adapt to the Ajax assembly request to get this random timestamp or not get the correct response ...

The parents can analyze the next call Htmlapi return URL open page, see the source code inside there is a reference JS inside wrote an asynchronous call this query this interface. is also asynchronous

-----------------------------------------

The above method does not work , then I began to analyze the packet capture data, see in the request http://www.kuaidi100.com/query?id=1&type=ems&postid=ED735359932IN&valicode=&temp= 0.4958606243599206 at this address, the Referer parameter in the request header is the response URL .

650) this.width=650; "id=" aimg_230 "src=" http://mycncart.cn/data/attachment/forum/201512/12/ 120013ro0ehsbnooxos0e5.png "class=" Zoom "width=" "style=" border:0px; alt= "120013ro0ehsbnooxos0e5.png"/>

You know this is a good idea, let's do a mock request Here are some of the following PHP notation:

Please request to get to the URL returned by HTMLAPI, and then request the second interface to assemble the request header to request, so you can return to the standard JSON data, how to do next, you self-evident ha

650) this.width=650; "id=" aimg_231 "src=" http://mycncart.cn/data/attachment/forum/201512/12/ 120355ddzcpr6omga48mva.png "class=" Zoom "width=" "style=" border:0px; alt= "120355ddzcpr6omga48mva.png"/>

--------------------------------------------------------------------

The first time to write such a post, but also more urgent to eat, you understand the understanding .....



Solve the Express 100 ordinary key can not query Shun Fung, Shentong and other express problems

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.