• Use Mysql to record the HTTP get request data operation returned from the URL


    Business scenario requirements and implementation logic analysis In business, we often encounter the need to use HTTP get to request data. For example, the results returned by the HTTP request are as follows: So, if we want to store these data with MySQL, how can we do it? In fact, it will be very easy […]

  • Golang implements HTTP server to provide compressed file download function


    Recently, I encountered a need to download static HTML reports. I need to complete the download function in the form of compressed package. In the process of implementation, I found that the relevant documents are very miscellaneous, so I summarize my implementation. Development environment: System environment: MacOS + ChromeFrame: beegoCompression function: Tar + gzipTarget compressed […]

  • Go HTTP client connection pool is not reused


    When the return value of HTTP client is not empty, only the response header is read, but the response is executed without reading the body content Body. Close(), then the connection will be actively closed and cannot be reused. The test code is as follows: // xiaorui.cc func HttpGet() { for { fmt.Println(“new”) resp, err […]

  • Requests, golang version HTTP request, support ja3 fingerprint modification


    requests The use of golang requests is very similar to that of Python requests. You are welcome to use them!If you think the project is good, please stay hereGitHub addressUp a littlestar。 Gitee address GitHub address Requests supports the following new features: Http2 is supported. The default connection is http2. After the connection fails, it […]

  • The second test of web network programming: http request, response and status management


    The second test of web network programming: http request, response and status management preface 1、 Experimental purpose 2、 Experimental environment 3、 Experimental content 4、 Code and screenshot 5、 Experiment summary preface In order to help the students complete the painful experimental course design, the author pastes the experimental results and codes for students’ reference. If […]

  • Newtonsoft in C # The use and processing of JSON format data by JSON (JSON. Net)


    C # some operations on JSON Newtonsoft in C # Use of JSON (JSON. Net) Add newtonsoft Json. DLL reference: Download newtonsoft Json. dll: Add to project: Newtonsoft. Use of Jason Add header file reference JSON format using code JSON format processing How to write the JSON format data of HTTP request into our class […]

  • PHP curl request opposite interface reports HTTP status 400 – bad request


    A curl get request colleague interface is written on the back end $data = Dhttp::curlGet(‘ https://www.xxxxxx.com/r/w/w?token=1&money=1&type=1&courseName= Text ‘); HTTP status 400 – bad request returned   Then I didn’t know where the problem was. I searched the Internet and said there was a problem with the parameters Then check the parameters. If the coursename parameter […]

  • Nginx configures HTTPS and force HTTP to jump to HTTPS


    server { listen 80; server_name zuzv.com; server_name www.zuzv.com; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ; ssl on; server_name zuzv.com; server_name www.zuzv.com; index index.html index.htm index.php; root /var/www/zuzv/; ssl_certificate ./cert/7290604.zuzv.com.pem; ssl_certificate_key ./cert/7290604_.zuzv.com.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; #error_page 404 /404.html; include enable-php.conf; location / { if (!-e $request_filename){ […]

  • C# network communication debugging assistant (including serial port, TCP, UDP and HTTP services)


    C# network communication debugging assistant (including serial port, TCP, UDP and HTTP services) Remember to pay attention first and point out a free praise roar, and look forward to more resources to help you in the later stage 2021-10-02 modification: enter the group to download the source code for free Remember to pay attention first […]

  • The past and present life of detailed HTTP protocol


    catalogue 1、 Foreword 2、 The birth of HTTP 3、 What is HTTP 4、 Stagnant http 5、 Distinguish between URLs and URIs 6、 HTTP requests and responses 7、 HTTP connection management 8、 Stateless http 9、 HTTP breakpoint continuation 10、 Disadvantages of HTTP 1、 Foreword Do you know how a web page is rendered when we enter […]

  • JavaWeb ~ servlet ~ deep understanding of cookies


    Article catalogue What is a cookie How cookies work Cookie properties How do we use cookies Modify and delete cookies Set cookies Server side settings Client settings What kind of data is suitable for putting in cookies Cookie format What is a cookie The HTTP protocol itself is stateless. Statelessness here means that there is […]

  • HTTP and HTTPS overview


    The difference between HTTP and HTTPS 1 background 2 basic concepts 3 difference 4 working principle 4.1 working principle of HTTP 4.2 working principle of HTTPS 5 advantages and disadvantages of HTTPS Advantages 1.5 5.2 disadvantages 6 HTTP request message and response message 6.1 request message 6.2 response message 1 background Hypertext Transfer Protocol (HTTP […]