Guten Tag SoftTech,

am Montag, 18. Februar 2008 um 15:55 schrieben Sie:

S> Return-Path: <[EMAIL PROTECTED]>
S> X-Flags: 1001
S> Delivered-To: GMX delivery to [EMAIL PROTECTED]
S> Received: (qmail invoked by alias); 18 Feb 2008 14:56:02 -0000
S> Received: from (EHLO
S> []
S>   by (mx081) with SMTP; 18 Feb 2008 15:56:02 +0100
S> Received: (qmail 6423 invoked from network); 18 Feb 2008 14:56:01 +0000
S> Received: from localhost (HELO ([EMAIL 
S>   by localhost with SMTP; 18 Feb 2008 14:56:00 +0000
S> Delivered-To: [EMAIL PROTECTED]
S> Received: (qmail 6338 invoked from network); 18 Feb 2008 14:55:59 +0000
S> Received: from (
S>         by with SMTP; 18 Feb 2008 14:55:59 +0000
S> Received-SPF: none ( domain at does
S>         not designate permitted sender hosts)
S> Received: from ([]) by
S>         (InterMail vM. 201-2186-121-102-20070209) with ESMTP
S>         id
S>         for <>; Mon, 18 Feb 2008 09:55:23 -0500
S> Received: from michael ([]) by
S> with bizsmtp
S>         id r2sb1Y0044TYytC0000000; Mon, 18 Feb 2008 09:52:37 -0500
S> From: "SoftTech" <[EMAIL PROTECTED]>
S> To: "ICS support mailing" <>
S> References:
S>         <[EMAIL PROTECTED]>
S> Date: Mon, 18 Feb 2008 08:55:30 -0600
S> MIME-Version: 1.0
S> X-Priority: 3
S> X-MSMail-Priority: Normal
S> X-Mailer: Microsoft Outlook Express 6.00.2900.3138
S> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
S> Subject: [twsocket] Newbie Question: How to use the HTTPCli component to
S>         connect to USPS
S> X-BeenThere:
S> X-Mailman-Version: 2.1.9
S> Precedence: list
S> Reply-To: ICS support mailing <>
S> List-Id: ICS support mailing <>
S> List-Unsubscribe:
S> <>, 
S>         <mailto:[EMAIL PROTECTED]>
S> List-Archive: <>
S> List-Post: <>
S> List-Help: <mailto:[EMAIL PROTECTED]>
S> List-Subscribe:
S> <>,
S>         <mailto:[EMAIL PROTECTED]>
S> Content-Type: text/plain; charset="us-ascii"
S> Content-Transfer-Encoding: 7bit
S> X-Anti-Virus: Kaspersky Anti-Virus for MailServers
S>, bases: 18022008 #531244, status: notchecked
S> X-GMX-Antivirus: -1 (not scanned, may not use virus scanner)
S> X-GMX-Htest: 0.53
S> X-GMX-Antispam: 0 (Mail was not recognized as spam)
S> X-GMX-UID: 7fHbE1M0bXBt0QX1FTQ2vsEqLyUmZcin

S> Greetings All,

S> This is my first attempt at programing to communicate with a web server and
S> althought I have been a Delphi programer for 11 years mainly in the database
S> field, I'm a newbie at this kind of programming and I now remember how
S> overwhelmed I was when first starting to learn Delphi.

S> I'm currently using Delphi 5.1 and want to communicate with a web server
S> hosted by USPS.

S> Using the webtools proviced by USPS at 
S> I would like to use their address
S> correction and lookup tools from within my Delphi application.

S> After reading their technical guides they do mention that software 
S> developers can also use these tools from within their own software.

S> I have signed up to use there tools and have tested calling their web server
S> by simply plugging in the following HTTP url (which includes XML) and it
S> works returning an XML value in internet explorer.  (Yeah)

S> Here is what I need to do:

S> I need to connect to a web server, send an xml message, the server receives
S> and respond to my
S> message responding with XML.

S> I can connect to a webserver using my internet browser and send it a string
S> of information like this:


S> NOTE: SERVERNAME and USERID above are of course replaced with the actual
S> server I'm logging onto and the User ID assigned to me

S> and it returns a response like this in XML format that I see in my internet
S> browser

S>   <?xml version="1.0" ?>
S> - <CityStateLookupResponse>
S> - <ZipCode ID="0">
S>   <Zip5>90210</Zip5>
S>   <City>BEVERLY HILLS</City>
S>   <State>CA</State>
S>   </ZipCode>
S>   </CityStateLookupResponse>

S> I understand I need to use the HTTPCli component to connect to the 
S> webserver, but am having trouble in how to use and hope that someone on this
S> list would take pitty on me and help to guide me in how to accomplish this.

S> Any guidance on how to get started would really be appreciated.

S> Thanks,
S> Mike 

just use the api function URLDownloadToFile for such an easy task. you
will find examples in google with "URLDownloadToFile delphi".
the only thing you have to be able is correct forming of the url
string .

Mit freundlichen Grüßen

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to