communicating with remote server via http

G

Greg

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.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Did you try to use WebRequest?

What you mean with name-values pairs?

cheers,
 
G

Greg

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.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

This has nothing to do with remoting.

Yes, It's simple to use.

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

cheers,
 
J

Joerg Jooss

Greg said:
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.

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

Cheers,
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top