Category : http

i have created an api for file upload in openapi 3.0 . My YAML file is like below paths: /upload: post: description: Upload a single Audio File requestBody: required: true content: multipart/form-data: schema: type: object properties: upload: type: string format: binary responses: ‘200’: description: Successful to Upload file ‘400’: description: Fail to Upload File in ..

Read more

I am unclear what did I do less. The client access index.html. Server receives access request, create client_fd 1, read the client’s request. Receive a client needs to access the index.html, the server returns the request. HTTP/1.1 200 OKrnConnection: Keep-AlivernContent-Type: text/htmlrnrn <html> <head> <h1>hello wrold</h1> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <p>访问成功</p> <img src="linux.png"></img> ..

Read more

I am making a webbrowser and now i have built everything, but requesting a html from webpage. I used libcurl, but with libcurl, my program can parse html, after all html from webpage is downloaded in memory. I want to do this, as all modern browsers does. So send a http request, and then for ..

Read more