For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > July 2007 > HTTP POST only knowing server IP and port number









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTTP POST only knowing server IP and port number
Vesna Sarajevo

2007-07-30, 7:11 pm

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

2007-07-30, 7:11 pm

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" <VesnaVujovicSA@gmail.com> wrote in message
news:1185802901.767718.47950@w3g2000hsg.googlegroups.com...
> 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
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com