logo
down
shadow

How to assure that data gets encrypted when using POST in httpClient


How to assure that data gets encrypted when using POST in httpClient

By : user2185379
Date : November 21 2020, 04:01 AM
With these it helps If you connect to your server using SSL the data you send will be encrypted. This can be achieved by simply using the https:// prefix when connecting to your server as opposed to the regular http prefix.
As you said that you are using SSL on your server I shall not go into the ins and outs of implementing it as it is very different on every platform. For anyone reading this in the future a great starting point is using LetsEncrypt if you're on a budget as it is free (although you do have to refresh your certificate every so often).
code :


Share : facebook icon twitter icon
How to post sha512 encrypted data

How to post sha512 encrypted data


By : Àmâsräøui MôHåmėd
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , the hash() function is what you are looking for. To create an sha512 hash call it as follows:
code :
hash('sha512', "the value to hash");
HTTPS POST data is not encrypted

HTTPS POST data is not encrypted


By : Jaime Betancourt
Date : March 29 2020, 07:55 AM
To fix this issue SSL is an end-to-end encryption between the web server and the web browser; this means that the traffic in between those two endpoints is encrypted.
Since you're at one end (the browser), you can see what has been sent and received, but someone in between can't.
Encrypted data in a from post -- base64 encode?

Encrypted data in a from post -- base64 encode?


By : Hakim Joseph
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further You do not need any special encoding to POST data to a server, as there is no restriction to what characters you can use.
If you choose to send the encrypted data as binary data, you should specify content-type header to be application/octet-stream.
POST data using HttpClient

POST data using HttpClient


By : Srinath Marar
Date : March 29 2020, 07:55 AM
will be helpful for those in need @John with the help of yours i did this
code :
public class CategoryItem
        {
            public int CategoryID { get; set; }
            public string Category { get; set; }
        }

        public class CategoriesRoot
        {
            public IList<CategoryItem> Categories { get; set; }
        }

         var tmp = new CategoriesRoot
                {
                    Categories = new List<CategoryItem> {
                    new CategoryItem { CategoryID = 1, Category = "Pizza" }
                }
                };

                using (HttpClient client = new HttpClient())
                {
                    client.DefaultRequestHeaders.Accept.Clear();
                    client.BaseAddress = new Uri(url);
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", api);
                    HttpResponseMessage response = client.PostAsJsonAsync("api/categories", tmp).Result;
                    }
How to post data using HttpClient?

How to post data using HttpClient?


By : Y u no
Date : March 29 2020, 07:55 AM
it helps some times I have got this HttpClient from Nuget. , You need to use:
shadow
Privacy Policy - Terms - Contact Us © bighow.org