Article View: borland.public.cppbuilder.internet.socket
Article #223Is ther a way to get Indy to convert html code to text at download time
From: 401KPensionCoder
Date: Sat, 14 Jun 2008 16:53
Date: Sat, 14 Jun 2008 16:53
11 lines
14279 bytes
14279 bytes
Remy was kind enough to get me this far, but this class member downloads
html -- see below-- and so I've got to parse it to extract my data...is
there a way to get Indy to download text to me...in other words already
parsed...maybe an encode/decode object that I don't recognize???
//
//code to get IRS Pension Interest rates
//
file2Write = getNewFileVersion(errMsg);
//HTTPS1->LocalFile = file2Write;
//tDiskfile->Text;
urlAddress.sprintf("http://www.irs.gov/retirement/article/0,,id=177406,00.html");//tURL->Text); SetCursorWait(); TFileStream *strm = new TFileStream(file2Write, Classes::fmCreate); try { SetCursorWait(); IdHTTP1->Get(urlAddress, strm); //this downloads the file }>>>>here's what I get>>>>>>>>>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD> <TITLE>Minimum Present Value Segment Rates</TITLE> <link rel="P3Pv1" href="/w3c/p3p.xml"><style type="text/css"> @import url("/irs/cda/common/styleSheets/navigation-gecko.css"); @import url("/irs/cda/common/styleSheets/styles-gecko.css");</style><!--[if gte IE]><style type="text/css"> @import url("/irs/cda/common/styleSheets/styles-ie.css"); @import url("/irs/cda/common/styleSheets/navigation-ie.css");</style><![endif]--><!-- Begin Meta Tags --><meta http-equiv="Content-Language" content="en-US" ><meta http-equiv="Content-Type" content="text/html; charset=utf-8" ><!-- End Meta Tags --> <META NAME="keywords" CONTENT="Retirement Plans Community,RetirementPlans,Minimum Present Value Segment Rates"> <META NAME="Wct" CONTENT="Retirement Plans Community,Retirement Plans"> <META NAME="date" content="2008-06-10"><script language="JavaScript" type="text/JavaScript">function setDivHeight() { if ((navigator.appName).indexOf("Microsoft")) { var footer = document.getElementById("footerDiv"); var footerHeightOffset = footer.offsetTop; var leftnav = document.getElementById("leftNavDiv"); leftnav.style.height = footerHeightOffset-125; }}</script> </head><body onload='setDivHeight()'><SCRIPT SRC="/js/irs_reporting.js"type="text/javascript"></SCRIPT><NOSCRIPT> <img border="0" name="DCSIMG" width="1" height="1"src="http://sdc.qai.irs.gov/njs.gif?dcsref=noScript" alt=" "></NOSCRIPT><div id="main"><!--stopindex--><div class="headerBar"><a href="/index.html"><img id="logo"src="/irs/cda/common/images/irslogo.gif" title="Internal Revenue ServiceUnited States Department of the Treasury" alt="Internal Revenue ServiceUnited States Department of the Treasury"/></a> <a href="/accessibility/index.html"><imgsrc="/irs/cda/common/images/blank.gif" title="Accessibility"alt="Accessibility" width="0" height="0" border="0" /></a> <a href="#skiptotopnav"><img src="/irs/cda/common/images/blank.gif"title="Skip to Top Navigation" alt="Skip to Top Navigation" width="0"height="0" border="0" /></a> <a href="#skiptocontent"><img src="/irs/cda/common/images/blank.gif"title="Skip to Main Content" alt="Skip to Main Content" width="0" height="0"border="0" /></a> <a href="/index.html">Home</a> | <a href="/contact/index.html">Contact IRS</a> | <a href="/irs/index.html">About IRS</a> | <a href="/sitemap/index.html">Site Map</a> | <a href="/espanol/index.html">Español</a> | <a href="/help/index.html">Help</a> <div id="mainsearch"> <form name="seek1" method="get" accept-charset="utf-8"action="http://search.irs.gov/web/query.html"> <script type="text/javascript" language="JavaScript"> <!-- function seek1SetCols(v) { for (i=0;i<document.seek1.elements.length;i++) { if (document.seek1.elements[i].name=='col') { document.seek1.elements[i].checked=v } } } //--></script> <input type="hidden" name="col" id="allirs_col" value="allirs" /> <input type="hidden" name="charset" value="utf-8" /> <input type="hidden" name="qp" value="" /> <input type="hidden" name="qs" value='-Wct:"Internal Revenue Manual"' /> <input type="hidden" name="qc" value="" /> <input type="hidden" name="qm" value="0" /> <input type="hidden" name="rf" value="0" /> <input type="hidden" name="oq" value="" /> <input type="text" class="qt" name="qt" id="sbSearch" size="26"maxlength="1991" alt="Keyword/Search Terms" onfocus="this.value='';"value="Keyword/Search Terms"/> <input class="search" name="search" alt="Search" title="Search"type="image" src="http://www.irs.gov/irs/cda/common/images/search_int.gif"value="&$self.text(u'search');"> <br /> <a class="slinks"href="http://search.irs.gov/web/advanced-search.htm">Advanced Seach</a> <a class="slinks" href="http://www.irs.gov/help/search_help.html">SearchTips</a> </form> </div></div><!--startindex--><!--stopindex--><div class="navigation"><a name="skiptotopnav"></a><ul id="menu"> <li class="menuitem" id="individuals_b"><a href="/individuals/index.html"title="Information for Individuals, Employees, Farmers, InternationalTaxpayers, Military, Parents, Self-Employed, Seniors & Retirees andStudents"><img src="/irs/cda/common/images/nav/individuals_a.gif"alt="Individuals"/></a></li> <li class="menuitem" id="businesses_b"><a href="/businesses/index.html"title="Information for Businesses, Corporations, International Businesses,Partnerships and Small Business/Self-Employed"><imgsrc="/irs/cda/common/images/nav/businesses_a.gif"alt="Businesses"/></a></li> <li class="menuitem" id="charities_b"><a href="/charities/index.html"title="Information for Charities & Non-Profits, Charitable Orgs,Churches and Religious Orgs, Contributors, Other Non-Profits, Political Orgsand Private Foundations"><imgsrc="/irs/cda/common/images/nav/charities_a.gif" alt="Charities &Non-Profits"/></a></li> <li class="menuitem" id="govt_b"><a href="/govt/index.html"title="Information for Government Entities, Federal, State, & LocalGov'ts, Governmental Liaisons and Indian Tribal Gov'ts"><imgsrc="/irs/cda/common/images/nav/govt_a.gif" alt="GovernmentEntities"/></a></li> <li class="menuitem" id="taxpros_b"><a href="/taxpros/index.html"title="Information for Tax Professionals, e-file Providers, EnrolledActuaries and Enrolled Agents"><imgsrc="/irs/cda/common/images/nav/taxpros_a.gif" alt="TaxProfessionals"/></a></li> <li class="menuitem" id="retirement_d"><a href="/retirement/index.html"title="Information for Retirement Plans Community, Benefits Practitioner,Plan Participant/Employee and Plan Sponsor/Employer"><imgsrc="/irs/cda/common/images/nav/retirement_c.gif" alt="Retirement PlansCommunity"/></a></li> <li class="menuitem" id="taxexemptbond_b"><ahref="/taxexemptbond/index.html" title="Information for Tax Exempt BondCommunity, Bond Professionals, Bondholders, Conduit Borrowers andIssuers"><img src="/irs/cda/common/images/nav/taxexemptbond_a.gif" alt="TaxExempt Bond Community"/></a></li></ul></div><div class="subNavigation"> <a href="/retirement/practitioner/index.html">BenefitsPractitioner</a> | <a href="/retirement/participant/index.html">PlanParticipant/Employee</a> | <a href="/retirement/sponsor/index.html">Plan Sponsor/Employer</a></div> <div class="sub-nav-content"><!--startindex--><!--stopindex--><div class="leftnav" id="leftNavDiv" style="float:left;"> <br /> <form name="intNav" method="get"action="http://www.irs.gov/app/scripts/intredirect.jsp"> <!-- Vignette V6 Fri Jul 20 04:00:13 PM 2007 --> <input type="hidden" name="select_one"value="http://www.irs.gov/retirement/article/0,,id=177406,00.html"> </form> <p class="leftnavtopics">Retirement Plans Community Topics</p> <ul type="square"> <li><ahref="/retirement/content/0,,id=122812,00.html">Newsletters</a></li> <li><a href="/retirement/content/0,,id=96710,00.html">PublishedGuidance</a></li> <li><a href="/retirement/article/0,,id=96763,00.html">EPForms/Pubs/Products</a></li> <li><a href="/retirement/article/0,,id=96907,00.html">Correcting PlanErrors</a></li> <li><ahref="/retirement/article/0,,id=147731,00.html">Examinations/Enforcement</a></li> <li><a href="/retirement/article/0,,id=178060,00.html">EP FAQs</a></li> <li><a href="/retirement/sponsor/article/0,,id=155347,00.html">Types ofPlans</a></li> <li><a href="/retirement/article/0,,id=162408,00.html">ContactEP/Services</a></li> <li><a href="/retirement/topic/index.html">More Topics . .</a></li> </ul> <p class="borderLeftNav" /> <p class="leftnavtopics">IRS Resources</p> <ul type="square"> <li><a href="/compliance/index.html">Compliance &Enforcement</a></li> <li><a href="/localcontacts/index.html">Contact My Local Office</a></li> <li><a href="/efile/index.html">e-file</a></li> <li><a href="/formspubs/index.html">Formsand Publications</a></li> <li><a href="/faqs/index.html">Frequently Asked Questions</a></li> <li><a href="/newsroom/index.html">News</a></li> <li><a href="/advocate/index.html">Taxpayer Advocacy</a></li> <li><a href="/file/index.html">Where To File</a></li> </ul><!-- end leftNav div --></div><!--startindex--><div class="contentPane" id="contentPaneDiv"><a name="skiptocontent"></a><TABLE border=0 cellPadding=0 cellSpacing=0 width=555> <tr><td><h2>Minimum Present Value Segment Rates</h2></td></tr> <tr><td class=content> </td></tr> <tr><td><table width="504" border="0"><tbody><tr><td><p>Generally for planyears beginning after December 31, 2007, the applicable interest rates under§417(e)(3)(D) of the Code are segment rates computed without regard toa 24 month average. For plan years beginning in 2008 through 2011, theapplicable interest rate is the monthly spot segment rate blended with theapplicable rate under §417(e)(3)(A)(ii)(II) of the Code as in effectfor plan years beginning in 2007. For plan years beginning in the statedyear, the following rates are the applicable interest rates for the monthand year listed for minimum present value computations under§417(e)(3)(D) of the Code.</p><p></p><table width="547" border="1"><tbody><tr><td><p align="center"><strong>For Plan<br />Years<br />Beginning In</strong></p></td><td><p align="center"><strong>Month/Year</strong></p></td><td><p align="center"><strong>First<br />Segment</strong></p></td><td><p align="center"><strong>Second<br />Segment</strong></p></td><td><p align="center"><strong>Third<br />Segment</strong></p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">May-08</p></td><td><p align="center">4.61</p></td><td><p align="center">4.95</p></td><td><p align="center">5.03</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Apr-08</p></td><td><p align="center">4.47</p></td><td><p align="center">4.81</p></td><td><p align="center">4.94</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Mar-08</p></td><td><p align="center">4.37</p></td><td><p align="center">4.79</p></td><td><p align="center">4.91</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Feb-08</p></td><td><p align="center">4.44</p></td><td><p align="center">4.85</p></td><td><p align="center">5.03</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Jan-08</p></td><td><p align="center">4.34</p></td><td><p align="center">4.67</p></td><td><p align="center">4.81</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Dec-07</p></td><td><p align="center">4.61</p></td><td><p align="center">4.85</p></td><td><p align="center">4.96</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Nov-07</p></td><td><p align="center">4.60</p></td><td><p align="center">4.82</p></td><td><p align="center">4.91</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Oct-07</p></td><td><p align="center">4.85</p></td><td><p align="center">5.02</p></td><td><p align="center">5.09</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Sep-07</p></td><td><p align="center">4.89</p></td><td><p align="center">5.06</p></td><td><p align="center">5.14</p></td></tr><tr><td><p align="center">2008</p></td><td><p align="center">Aug-07</p></td><td><p align="center">5.02</p></td><td><p align="center">5.18</p></td><td><p align="center">5.28</p></td></tr></tbody></table></td></tr></tbody></table></td> <td width=5> </td></tr></TABLE><!-- end contentPane div --></div><!--stopindex--><div class="footer" id="footerDiv"> <a href="/accessibility/index.html">Accessibility</a> | <ahref="http://www.irs.gov/app/scripts/exit.jsp?dest=http%3A%2F%2Fwww.firstgov.gov" title="U.S. Government Homepage">FirstGov.gov</a> | <a href="/foia/index.html">Freedom of Information Act</a> | <a href="/help/content/0,,id=127967,00.html">ImportantLinks</a> | <a href="/privacy/index.html">IRS Privacy Policy</a> | ahref="http://www.irs.gov/app/scripts/exit.jsp?dest=http%3A%2F%2Fwww.treasury.gov/" title="U.S. Department of the Treasury">U.S. Treasury</a><br /><br /></div><!--startindex--><!-- end *nav div --></div><!-- end main div --></div></body></html>
Technical Details
Message-ID:
<4853f787$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,db0ca8094047b4cb,start X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "401KPensionCoder" <charlesLeggette@earthlink.net> From: "401KPensionCoder" <charlesLeggette@earthlink.net> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Is ther a way to get Indy to convert html code to text at download time Date: Sat, 14 Jun 2008 11:53:09 -0500 Lines: 11 Organization: Leggette Actuaries, Inc MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 209.234.161.202 Message-ID: <4853f787$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213462407 209.234.161.202 (14 Jun 2008 09:53:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail