मैं इस कोड है कि एक अनुरोध बनाता है और डेटा पढ़ता है, लेकिन यह हमेशा खालीपढ़ना डेटा रिटर्न रिक्त मान
static string uri = "http://yiimp.ccminer.org/api/wallet?address=DshDF3zmCX9PUhafTAzxyQidwgdfLYJkBrd";
static void Main(string[] args)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// Get the stream associated with the response.
Stream receiveStream = response.GetResponseStream();
// Pipes the stream to a higher level stream reader with the required encoding format.
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
Console.WriteLine("Response stream received.");
Console.WriteLine(readStream.ReadToEnd());
response.Close();
readStream.Close();
}
है जब मैं ब्राउज़र से लिंक का उपयोग करने के मैं इस json पाने की कोशिश की है:
{"currency": "DCR", "unsold": 0.030825917365192, "balance": 0.02007306, "unpaid": 0.05089898, "paid24h": 0.05796425, "total": 0.10886323}
मुझे क्या याद आ रही है?
क्या आपको कोई त्रुटि मिल रही है? अनुरोध के लिए स्टेटस कोड क्या है? – Jerodev
कोई त्रुटि नहीं, बस एक खाली मान –