What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-08 21:47:15
restclient c#
//example code //var lst = await service.ConnectHttpClient<User, List<User>>("api/User/GetUserInfoByUserId", new User() { UserId = 1 }); //var lst = await service.ConnectRestClient<User, List<User>>("api/User/GetUser... Add solution -
Python 2021-11-08 09:14:30
httpresponse django
from django.http import HttpResponseRedirect Add solution -
Javascript 2021-11-07 11:29:12
convert json in parse inputs azure function
#r "Newtonsoft.Json" using System.Net; using Newtonsoft.Json; public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) { dynamic body = await req.Content.ReadAsStringAsync(); var e = JsonConvert.... Add solution -
Java 2021-11-07 05:08:10
make a post request call using HttpClient in java
HttpClientPostJSON.java package com.mkyong.java11.jep321; import java.io.IOException; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.time.Duration; public class Htt... Add solution -
Other 2021-11-05 08:39:10
DeleteAsync
HttpResponseMessage response = _client.PostAsync("/post", new StringContent(JsonConvert.SerializeObject(obj), Encoding.UTF8, "application/json")).Result; string res = await response.Content.ReadAsStringAsync(); return await JsonConvert... Add solution -
C# 2021-10-26 22:27:06
httpclient C#
// HttpClient is intended to be instantiated once per application, rather than per-use. See Remarks. static readonly HttpClient client = new HttpClient(); static async Task Main() { // Call asynchronous network methods in a try/catch block to handle ex... Add solution -
TypeScript 2021-10-25 05:16:08
how to supply username and password while making rest callouts in salesforce
String endpoint='https://xyz...com/'; String userID='xyz'; String password='pass'; String jsonBody ='userID=' + userID + '&password=' + password; HTTP auth = new HTTP(); HTTPRequest r = new HTTPRequest(); r.setClientCertificateName('certificate_Name')... Add solution -
Java 2021-10-11 03:12:04
http java.net post
//Exemple : package com.zetcode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.... Add solution
Best helpers
Ranking is empty