HTTP POST only knowing server IP and port number

Discussion in 'ASP .Net' started by Vesna Sarajevo, Jul 30, 2007.

  1. Hi all!

    I have to pass a SOAP message to a server, and I know only server IP
    and
    the port number. I was gonna do it from a form, using WebRequest Class
    and
    StreamWriter to fetch the result. What I don't know is how to pass
    this port and
    server IP instead of URL?

    Should I do this some other way instead?

    Thanx in advance
     
    Vesna Sarajevo, Jul 30, 2007
    #1
    1. Advertising

  2. Use something like

    HttpWebRequest myReq
    =(HttpWebRequest)WebRequest.Create("http://10.10.10.10:4567");

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net


    "Vesna Sarajevo" <> wrote in message
    news:...
    > Hi all!
    >
    > I have to pass a SOAP message to a server, and I know only server IP
    > and
    > the port number. I was gonna do it from a form, using WebRequest Class
    > and
    > StreamWriter to fetch the result. What I don't know is how to pass
    > this port and
    > server IP instead of URL?
    >
    > Should I do this some other way instead?
    >
    > Thanx in advance
    >
     
    Eliyahu Goldin, Jul 30, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    489
    John McGrath
    Apr 5, 2005
  2. ColinK
    Replies:
    0
    Views:
    555
    ColinK
    Jul 15, 2007
  3. n3d!m

    Http post and http get

    n3d!m, Jan 25, 2012, in forum: Python
    Replies:
    2
    Views:
    364
    n3d!m
    Feb 6, 2012
  4. Alejandro Ramierz
    Replies:
    4
    Views:
    211
    Jan Svitok
    Jan 9, 2007
  5. Andreea
    Replies:
    0
    Views:
    521
    Andreea
    Apr 21, 2012
Loading...

Share This Page