471,310 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

communicating with remote server via http

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.

Nov 30 '05 #1
4 1114
Hi,

Did you try to use WebRequest?

What you mean with name-values pairs?

cheers,

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

"Greg" <gr*************@yahoo.co.uk> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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.

Nov 30 '05 #2
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.

Nov 30 '05 #3
Hi,

This has nothing to do with remoting.

Yes, It's simple to use.

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

cheers,

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

"Greg" <gr*************@yahoo.co.uk> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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.

Nov 30 '05 #4
Greg wrote:
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,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 30 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Erwin Moller | last post: by
7 posts views Thread by WAkthar | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.