[ mr.zhile @ 17.06.2009. 07:52 ] @
Imam vec postojeci windows servis koji treba dase izmeni,u smislu da omoguci i slanje http poruke...meni treba neka pomoc,ako je neko ranije radio sa http porukama u C# moze li mi pomoci...? |
[ mr.zhile @ 17.06.2009. 07:52 ] @
[ mr.zhile @ 19.06.2009. 12:13 ] @
au pa nije li toliko teska tema...da nema odgovora?
![]() [ sallle @ 19.06.2009. 12:22 ] @
httpwebrequest klasa
[ mr.zhile @ 19.06.2009. 13:52 ] @
@sallle
Hvala...konacno se neo setio da napise... Jel mozes mozda neki primercic da postavis kako bi se slala poruka,ka odredistu,koje tek treba da dobijem? jos jednom velliko hvala!! [ Aleksandar Ružičić @ 19.06.2009. 18:48 ] @
google >> msdn
Code: using System; using System.Net; using System.Text; using System.IO; public class Test { // Specify the URL to receive the request. public static void Main (string[] args) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create (args[0]); // Set some reasonable limits on resources used by this request request.MaximumAutomaticRedirections = 4; request.MaximumResponseHeadersLength = 4; // Set credentials to use for this request. request.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse response = (HttpWebResponse)request.GetResponse (); Console.WriteLine ("Content length is {0}", response.ContentLength); Console.WriteLine ("Content type is {0}", response.ContentType); // 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 (); } } /* The output from this example will vary depending on the value passed into Main but will be similar to the following: Content length is 1542 Content type is text/html; charset=utf-8 Response stream received. <html> ... </html> */ [ oliverhaddo @ 20.06.2009. 12:42 ] @
[ mr.zhile @ 22.06.2009. 08:52 ] @
Veliko hvala na savetima...
@administrator Hteo sam da pitam da li je ko radio i kako se koristi ThreadDaily u C#? Jel mora nova tema ili mogu ovde? Copyright (C) 2001-2023 by www.elitesecurity.org. All rights reserved.
|