Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Slanje http poruke uz pomoc C#

[es] :: .NET :: .NET Desktop razvoj :: Slanje http poruke uz pomoc C#

[ Pregleda: 2651 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

mr.zhile
Ivan ZHILE
C# developer

Član broj: 185721
Poruke: 249
212.200.115.*



+2 Profil

icon Slanje http poruke uz pomoc C#17.06.2009. u 07:52 - pre 179 meseci
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...?
Don't worry be happy
 
Odgovor na temu

mr.zhile
Ivan ZHILE
C# developer

Član broj: 185721
Poruke: 249
212.200.115.*



+2 Profil

icon Re: Slanje http poruke uz pomoc C#19.06.2009. u 12:13 - pre 179 meseci
au pa nije li toliko teska tema...da nema odgovora?

Don't worry be happy
 
Odgovor na temu

sallle
Sasa Ninkovic
GTECH
Beograd

Član broj: 146
Poruke: 480
*.psit.rs.

ICQ: 20785904


+4 Profil

icon Re: Slanje http poruke uz pomoc C#19.06.2009. u 12:22 - pre 179 meseci
httpwebrequest klasa
 
Odgovor na temu

mr.zhile
Ivan ZHILE
C# developer

Član broj: 185721
Poruke: 249
212.200.115.*



+2 Profil

icon Re: Slanje http poruke uz pomoc C#19.06.2009. u 13:52 - pre 179 meseci
@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!!
Don't worry be happy
 
Odgovor na temu

Aleksandar Ružičić
Software Architect, Appricot d.o.o.
Beograd

Član broj: 26939
Poruke: 2881

Jabber: krckoorascic@gmail.com
Sajt: krcko.net


+44 Profil

icon Re: Slanje http poruke uz pomoc C#19.06.2009. u 18:48 - pre 179 meseci
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>

*/

 
Odgovor na temu

oliverhaddo

Član broj: 144508
Poruke: 15
*.dsl.optinet.hr.



Profil

icon Re: Slanje http poruke uz pomoc C#20.06.2009. u 12:42 - pre 179 meseci
Prouči ovaj link:

http://www.heatonresearch.com/book/http-programming-csharp.html
 
Odgovor na temu

mr.zhile
Ivan ZHILE
C# developer

Član broj: 185721
Poruke: 249
212.200.115.*



+2 Profil

icon Re: Slanje http poruke uz pomoc C#22.06.2009. u 08:52 - pre 179 meseci
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?
Don't worry be happy
 
Odgovor na temu

[es] :: .NET :: .NET Desktop razvoj :: Slanje http poruke uz pomoc C#

[ Pregleda: 2651 | Odgovora: 6 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.