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 enterprise.codeboffins.com (EHLO
S> enterprise.codeboffins.com) [66.135.48.88]
S>   by mx0.gmx.net (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 enterprise.codeboffins.com) ([EMAIL 
PROTECTED])
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 eastrmmtao104.cox.net (68.230.240.46)
S>         by enterprise.codeboffins.com with SMTP; 18 Feb 2008 14:55:59 +0000
S> Received-SPF: none (enterprise.codeboffins.com: domain at softtechks.com does
S>         not designate permitted sender hosts)
S> Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmmtao104.cox.net
S>         (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP
S>         id
S> <[EMAIL PROTECTED]>
S>         for <twsocket@elists.org>; Mon, 18 Feb 2008 09:55:23 -0500
S> Received: from michael ([24.255.172.206]) by
S> eastrmimpo03.cox.net with bizsmtp
S>         id r2sb1Y0044TYytC0000000; Mon, 18 Feb 2008 09:52:37 -0500
S> Message-ID: <[EMAIL PROTECTED]>
S> From: "SoftTech" <[EMAIL PROTECTED]>
S> To: "ICS support mailing" <twsocket@elists.org>
S> References:
S> <[EMAIL PROTECTED]><[EMAIL PROTECTED]>
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: twsocket@elists.org
S> X-Mailman-Version: 2.1.9
S> Precedence: list
S> Reply-To: ICS support mailing <twsocket@elists.org>
S> List-Id: ICS support mailing <twsocket.elists.org>
S> List-Unsubscribe:
S> <http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket>, 
S>         <mailto:[EMAIL PROTECTED]>
S> List-Archive: <http://lists.elists.org/pipermail/twsocket>
S> List-Post: <mailto:twsocket@elists.org>
S> List-Help: <mailto:[EMAIL PROTECTED]>
S> List-Subscribe:
S> <http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket>,
S>         <mailto:[EMAIL PROTECTED]>
S> Content-Type: text/plain; charset="us-ascii"
S> Content-Transfer-Encoding: 7bit
S> Sender: [EMAIL PROTECTED]
S> Errors-To: [EMAIL PROTECTED]
S> X-Anti-Virus: Kaspersky Anti-Virus for MailServers
S> 5.5.12.2/Plesk_SWsoft, 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> http://www.usps.com/webtools/address.htm 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> 
http://SERVERNAME/ShippingAPITest.dll?API=CityStateLookup&XML=<CityStateLookupRequest%20USERID="xxxxxxxx"><ZipCode%20ID=%20"0"><Zip5>90210</Zip5></ZipCode></CityStateLookupRequest>

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
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


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

Reply via email to