Yep, makes sense, especially if they sell those zip+4 lists.
Kind of related, has anyone had any experience with selecting zip
codes based on a given zip code and a radius from it? A mailing list
I use has that feature to target newsletters and would be a handy
function to have. I'm guess
Right, but not a lot from one place. I think their acceptable use would be
under 30 or 40 hits a day from one IP, but if they get thousands, I think
someone might contact you. They have some kind of published Acceptable Use
policy on the site don't they? If not, then I guess you are in the clear
USPS has a zip code lookup feature on their web site and seems like
they would expect a lot of people using it
Pete Haworth
On Nov 30, 2010, at 2:14 PM, Bob Sneidar wrote:
Also be advised that too many hits from one place may result in
alarms going off. It may have changes since I thoug
retrieve 9 digit social security numbers. Now that will be
particularly interesting. :-)
Jim
Message: 23
Date: Tue, 30 Nov 2010 08:06:26 -0500
From: Peter Brigham MD
To: How to use LiveCode
Subject: Re: Nine digit zip codes
Message-ID: <5f95fd09-ec86-4c81-ae6e-be96bcbba...@gmail.com&
Also be advised that too many hits from one place may result in alarms going
off. It may have changes since I thought about doing this way back when, but
they offered this site as a way for the every day user to get a zip+4, not for
a commercial app to do it on the cheap as a way to avoid paying
FWIW, I have a handler that feeds the address to Google Maps and then
parses the HTML to extract the 5-digit zip code. Takes less than a
second unless the traffic is high. I'm pretty good at text parsing but
know very little about XML and GET/POST commands -- I had to look
around to find a
As Kee Nethery said, the answer to the names of the variables is in
the section of the starting web page.
Spaces are not allowed in the GET string, thus the '+' char.
You could use LCode urlEncode(GetString) to be sure all chars
necessary are converted before sending a GET to a web server.
In general.
Open the web page, view source, find the form tags and for every variable
within the form tags, create a tag= value. If there are hidden fields and radio
buttons, just look at the HTML specs to see how to format those tags in the GET
statement. Make sure you URL encode the data aft
n, 28 Nov 2010 04:18:13 -0800
From: Jim Ault
To: How to use LiveCode
Subject: Re: Nine digit zip codes Oops
Message-ID: <8652e41f-85a2-42b1-af22-5a61fbc60...@yahoo.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed;
delsp=yes
The 'submit' button on a page w
The 'submit' button on a page will do one of two things. Either
send a GET string
send a POST message
-- I meant to add this --
The USPS page uses 'post', as shown on the line below
OnSubmit="return validate(form1)">
where action-> the script (handler),
and the method tells the
The POST is a more capable method that sends the web page address &
another message that can contain a variety of encoded data. - this
method does not have a limit and the variables cannot be sniffed
Yes they can.. anything being sent from your computer to the server
(GET or POST) can be sn
The 'submit' button on a page will do one of two things. Either
send a GET string
send a POST message
The USPS page uses"
The GET is a simple method of send a web page address & the data pairs.
- this method has a limit of about 1000 chars and is sent so that a
program sniffing packets
The key section of the reply
[ url http://zip4.usps.com/zip4/zcl_0_results.jsp ] is
style="background:url(images/table_gray.gif); padding:5px 10px;">
9876 W CHARLESTON BLVD APT 2555
LAS VEGAS NV 89117-7061
and
Richard,
I'm beginning to get it. I should put
visited
=1&pagenumber=0&firmname=&address2=620+moulton&address1=&city=los
+
angeles
&state=ca&urbanization=&zip5=90031&submit.x=48&submit.y=8&submit=Fin
into field 1--or, of course, the data appropriate to my addresses.
But where did this "
Richard,
Thanks. I am astonished that this is possible.
I'm afraid I am missing something. I tried entering my data (my home
address--it appears that is what you did) in the USPS page
http://zip4.usps.com/zip4/
I then copied and pasted that source code into field 1 in LiveCode. (I
didn't
If you want to do it the 'right' way you might consider getting an API
keythen you can be sure it will continuously work - screen scraping may
fail if they change the website.
The USPS appears to have extensive APIs available - looks like it talks
XML..
http://www.usps.com/webtools/address.h
James Hurley wrote:
At the USPS web site (http://zip4.usps.com/zip4/) it is possible by
entering the street address, the city and the state to obtain the 9
digit zip code for that address.
This may be naive, but is it possible to do this from within LiveCode
by script?
Good news: you can use
I sent this message a while back, but I suspect it got lost in the
RunRev-LiveCode changeover.
At the USPS web site (http://zip4.usps.com/zip4/) it is possible by
entering the street address, the city and the state to obtain the 9
digit zip code for that address.
This may be naive, but is
18 matches
Mail list logo