Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

LR test HTTP interface

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Read the interface documentation

two。 Select protocol

3. Send the request using the web custom request function, which supports both get and post, and needs to pay attention to the data format.

4. You can also use web_url to complete get,web_submit_data and post.

5. Check the return code in the response (optional), that is, the checkpoint in the script.

6. Run-Time Settings- > Log- > Extended log- > check Data returned by server (unchecked for non-APIs)

7. If it is the interface of https, you need to add web_set_sockets_option ("SSL_VERSION", "TLS") to the top of the script

8. For Chinese parameters, transcoding is required.

9. Interface dependency-Association

10. If it is in json format, you need to specify EncType=application/json, as shown above.

If it is in xml format, you need to specify EncType=text/html;charset=UTF-8.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report