Both Post and Get will result in that you get an answer from the server. The
differense of these 2 is what you send to the server.

The reason that Post exist is that you get more possibility to send more
data in the request. If you want to uppload a file to a webserver, then you
use Post. If you just want to get a file on a given location, you use Get.

Create a stream and assign to RcvdStream of the httpclient. Assign
http://192.168.0.26/temper.xml to the URL property. Call GetAsync. In
OnRequestDone, read the content of RcvdStream and put into your memo (be
sure to set the position of the stream at the beginning).

Regards Bjørnar

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of TK Boyd
> Sent: 21. juni 2005 15:33
> To: ICS support mailing
> Subject: Re: [twsocket] HttpTst: Can erad xml on LAN,what am 
> I doing wrong for internet?
> 
> Many thanks for the quick reply!
> 
> I've spent 2 hours trying Get instead of Post... there are 
> still some areas I could explore... maybe Get is better, and 
> I'm just meeting the NEXT problem, but....
> 
> Are you sure "Get" is the way to go?
> 
> So far:
> My program works.. for LAN, not internet, if I use Post.
> Doesn't work at all with Get.
> 
> What I'm trying to do:
> 
> I'm trying to mimic using a browser to access
> 
> http://192.168.0.26/temper.xml
> 
> .. and get the XML it returns into a memo on my form.
> 
> (If you point a browser at that URL, you can see the XML.)
> 
> =====
> I thought "Post" was the way to go, 'cause I was "posting" a 
> request to the LAN/internet... as I say, it seems to work, up 
> to a point (i.e. I've got some things right!)
> 
> Does a "Get" have built into it a "send request to <url>" followed by
> (somehow) "collect the answer"?
> 
> As I said... I'm quite willing to do my own work; I will 
> spend more time digging in the code, trying to understand, 
> but a little encouragement telling me I'm at least banging my 
> head against the right wall would be very welcome!! :-)
> 
> Tom
> 
> (Apologies for my typo in the subject line)
> 
> On 21 Jun 2005 at 13:01, Francois Piette wrote:
> 
> > > cmd> POST /temper.xml HTTP/1.0
> > 
> > Why are you using Post ? It should probably be a Get.
> > 
> > --
> > [EMAIL PROTECTED]
> > http://www.overbyte.be
> > 
> > 
> > --
> > To unsubscribe or change your settings for TWSocket mailing list 
> > please goto http://www.elists.org/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
> > 
> 
> 
> 
> http://sheepdogsoftware.co.uk
> Freeware, shareware. Kids, parents, schools... and others.
> 
> 
> 
>               
> ___________________________________________________________
> How much free photo storage do you get? Store your holiday 
> snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
> 
> 
> --
> To unsubscribe or change your settings for TWSocket mailing 
> list please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> 



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to