nginx + ffmpeg + rtsp + rtmp/http-flv streaming media service construction [full version] Install nginx and its dependencies gcc installation yum -y install gcc gcc-c + + pcre installation #If you can’t pull it down, you can directly copy the link to the browser to download. I successfully downloaded it directly from the browser, and […]
Tag: http
Simple HTTP service to implement random return of directory pictures and HTML to implement Web page design (experiment summary)
1. HTTP service for returning random pictures Implement the configuration environment: python, flask package (install with pip command or directly search for it in the ide and install it directly) Create a flask project directly in python and put the code from flask import Flask app = Flask(__name__) import os import random from flask import […]
OkHttpUtils.post() uploads files (Android front-end upload and server background reception)
Android terminal 1. First of all, you need to use the package, now add dependencies in build.gradle(app) implementation ‘com.github.xxl6097:okhttputils:2.4.1’ //Or implementation ‘com.zhy:okhttputils:2.6.2’ //The first one used here Without further ado, let’s get straight to the code. 2. Upload code multiFileUpload method public void multiFileUpload(ArrayList<Image> image) throws UnsupportedEncodingException {<!– –> Be a json string and set […]
HTTP and HTTPS website Linux environment host configuration examples
Table of Contents Foreword: 1. Based on the domain name www.openlab.com, you can access the website and the content is welcome to openlab! ! ! analyze: Related configuration: 2. Create three website directories for the company to display student information, teaching materials and payment websites respectively. Based on www.openlab.com/student website to access student information, www.openlab.com/data […]
Various ways to send http requests in java
Native java sends http request package com.cyz; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.URL; import java.net.URLConnection; import java.util.List; import java.util.Map; /** * @author cyz * @since 2023/11/8 9:50 */ public class CustHttp { public static String post(String targetUrl, String params) throws IOException { URL url = new URL(targetUrl); PrintWriter out = null; […]
java downloads files to the local tool class by specifying the URL address (including https digital signature request)
java downloads files to the local tool class by specifying the URL address (including https digital signature request) XFileUtils public class XFileUtils {<!– –> /** * Download files from network Url * @param urlStr url path * @throwsIOException */ public static String downLoadByUrl(String urlStr,String savePath, String fileName) {<!– –> if (StrUtil.isBlank(fileName)) {<!– –> fileName = […]
HttpClient optimization solution in high concurrency scenarios, QPS is greatly improved!
Taro Source Code 2023-10-14 10:14 Published in Shanghai This is a community that may be useful to you One-on-one communication/interview brochure/resume optimization/job search questions, welcome to join the “Yudao Rapid Development Platform” Knowledge Planet. The following is some information provided by Planet: “Project Practice (Video)”: Learn from books, “practice” from past events “Internet High Frequency […]
A Bite of HTTP/2.0: Underlying exploration of HTTP2 and new attack frontiers
Background: After accumulating some scenarios, the testing requirements for Web Fuzzer HTTP2 should gradually be put on the agenda; many times, when encountering H2 websites during testing, users still have to switch to Burp to continue testing, and are forced to endure the interaction and Repeater/Intruder has quite a big problem with scalability. But in […]
Android: OkHttp synchronous request and asynchronous request
1. Foreword In my previous work on network requests, I used post requests. After learning about them, I found that there are many types of requests. The following focuses on the synchronous requests and asynchronous requests of get and post. 2. Specific content 1. Characteristics of Okhttp: Supports HTTP/2 and allows all requests to the […]
Nodejs quickly builds a simple HTTP server and publishes remote access to the public network
Article directory Preface 1. Install Node.js environment 2. Create node.js service 3. Access node.js service 4.Intranet penetration 4.1 Install and configure cpolar intranet penetration 4.2 Create tunnel mapping local port 5. Fixed public network address Before I start the text, I would like to recommend a website to you. A few days ago, I discovered […]