Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2005

Tip: Looking for answers? Try searching our database.

communicating with remote server via http

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 30 Nov 2005 17:33 GMT
I've been tasked with writing a small app to that needs to talk to a
remote server via raw http.
Data is to be sent and received using name-value pairs. I have been
given the syntax for various http requests.

My app doesn't know much about the server app (on a customer's
computer). Where do I start? What sort of classes do I need to be
using?

Do I need any other parameters for setting up the Http connection other
than the IP address and port number? The server machine is running
Tomcat Webserver (not that that should make any difference.)

Any tips would be very gratefully received.

Greg.
Ignacio Machin ( .NET/ C# MVP ) - 30 Nov 2005 19:16 GMT
Hi,

Did you try to use WebRequest?

What you mean with name-values pairs?

cheers,

Signature

Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

> I've been tasked with writing a small app to that needs to talk to a
> remote server via raw http.
[quoted text clipped - 12 lines]
>
> Greg.
Greg - 30 Nov 2005 19:32 GMT
Thanks Ignacio.
I haven't tried WebRequest yet - I didn't know where to start. Remoting
is a complex topic and my app is only small, so I didn't want to have
to learn things that I don't need just yet.

Example of name-value pairs:
personName="fred", personCity="London"

Is WebRequest simple to use?

Thanks a lot for getting back to me.

Greg.
Ignacio Machin ( .NET/ C# MVP ) - 30 Nov 2005 20:19 GMT
Hi,

This has nothing to do with remoting.

Yes, It's simple to use.

One question though, what you mean with "raw" ?

cheers,

Signature

Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

> Thanks Ignacio.
> I haven't tried WebRequest yet - I didn't know where to start. Remoting
[quoted text clipped - 9 lines]
>
> Greg.
Joerg Jooss - 30 Nov 2005 21:59 GMT
> Thanks Ignacio.
> I haven't tried WebRequest yet - I didn't know where to start.
[quoted text clipped - 7 lines]
>
> Thanks a lot for getting back to me.

For your purpose, try System.Net.WebClient.UploadValues().

Cheers,
Signature

http://www.joergjooss.de
mailto:news-reply@joergjooss.de


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.