http

Java server for Android applications

I need to make a server in java that will work with the database and perform other functions. The choice fell on the server b ... to fix it. It is possible to completely change architecture or toolkit. The main thing is that the server is written in Java.

The difference between a text-based MD5 hash sum and a file-based hash sum

There is a program whose essence is to accept an HTTP request with a file and in the response you need to send an MD5 hash am ... he amount from the file. I check it in Notepad++. Help teach the Windows service build to calculate a hash based on the text

Generating a POST request with php curl in JSON format

Trying to get a token for the digiseller api https://my.digiseller.com/inside/api_general.asp#token I'm trying to form a req ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); echo $server_output; curl_close ($ch);

Debugging JS in react applications that use REST

Dear sirs, there is a question related to debugging js when using react. The story was arranged as follows: First, I develo ... xt of the error in the form of an image: If you can see something in it, what I missed - please write. Thank you in advance!

Installing an ssl certificate on Vesta (https does not work)

In vesta, I added all the data for ssl, created files with the ssl extension, but https does not work. Domain zizli.ru. Every ... cept for the domain and port (there are their own). Http works, the application is on NextJS. Please tell me what's going on.

How to calculate the Content-Length for the POST request header in PHP CURL?

To integrate with the OptiCore Warehouse-Cloud service, you need to execute a POST request ClientOrder_CreateUpdate with XML ... ue to the fact that this value is calculated by it automatically, but how to do it in PHP??? https://yadi.sk/i/oaSYQxLof1pS3w

PHP connection via proxy

Hello everybody! Why doesn't it connect? It works without a proxy. And with a proxy, a blank screen. What is the error? Curl ... //print curl_errno ($ch); //print $result; echo $result; curl_close ($ch); } ?>

Http javascript request

I just asked you a question, I probably did not express myself correctly, or I was not correctly understood. You need to make ... s, in the variable html we have html code of the site page where the request was made. The same should be done on javascript

Python vk api error

I'm writing a python program for posting posts with an image to a Vk group. I use the vk_api library and requests. Actually h ... ')} ur=requests.post(upload_url,files=file) print(ur) At startup, it outputs Response [200] . How can this be fixed?

Node js http/https request

function networkRequest(options) { const config = options.config; const protocol = (config.port === 443 ? https : htt ... he site does not send any data, no result is transmitted to the promise, and the entire application crashes. How to solve it?

The site is available simultaneously via HTTP and HTTPS

There is a website that has a free certificate installed for HTTPS. Is there any way to make the site available simultaneously over HTTP and over HTTPS?

Remove a redirect to https on a custom domain in github pages

I have an application that I posted on Github pages, it has requests to another server at the address "http://...", that serv ... work on a custom domain? After all, it usually does not work on pr pages. Here is the link to the page itself: github pages

Header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found');

When creating a 404 page, the following data is often sent to the headers HTTP/1.1 404 Not Found Status: 404 Not Found The first title is clear. But, what does 2 mean and is it necessary at all?

How do I send JSON in the body of an HTTP request?

There is a class public struct Message { public string Guid { get; set; } public string Token { get; set; } } This c ... ring json = JsonConvert.SerializeObject(message); How to pass it to the request body (it is supposed to use HttpWebRequest)?

Golang REST API error response

Ideologically correct error return to the REST API client For example a simple REST API: package main import ( "fmt" ... ror handling choose when the error comes from the" depth " of the project and with each level becomes overgrown with context?

Are characters supported in the http request header name?

I am interested in whether it is possible to use the _ symbol in custom http headers (field names)?

How do I send a GET request on Android?

I can't send a GET request to android try { URL url = new URL("http://10.0.2.2/denwer/php/index.php"); url.openConne ... d the exception is not raised. Although if I open this address in the browser on android, the script is executed. What to do?

CAUTION: provisional headers are shown

Hi... I have a problem in Chrome. The request does not seem to be sent and this message is displayed in the console on this p ... t reasons: The request is not being sent? You don't get a response? The server does not generate an answer to the question?

How do I get a url from a string? Python

string = 'https://vk.com/video_hls.php?dirs[240]=https://pvv4.vkuservideo.net/c515336/3/ef3Ojk4MzQ-PzMx/videos/&' How d ... .net/c515336/3/ef3Ojk4MzQ-PzMx/videos/ from 'dirs[240]= 'to'&'? You need to implement it using the re{[4] library]}

Line break character in HTTP headers

I send the following response from the server: QString response = "HTTP/1.1 \r\n Access-Control-Allow-Origin: * \r\n 200 OK ... he response to "shove" the Access-Control-Allow-Origin parameter and whether I correctly specified the line break characters