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
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
As Kee Nethery said, the answer to the names of the variables is in
the FORM ... /FORM 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
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
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
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..
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
Richard,
I'm beginning to get it. I should put
visited
=1pagenumber=0firmname=address2=620+moultonaddress1=city=los
+
angeles
state=caurbanization=zip5=90031submit.x=48submit.y=8submit=Fin
into field 1--or, of course, the data appropriate to my addresses.
But where did this visited
The key section of the reply
[ url http://zip4.usps.com/zip4/zcl_0_results.jsp ] is
td headers=full height=34 valign=top class=main
style=background:url(images/table_gray.gif); padding:5px 10px;
9876 W CHARLESTON BLVD APT 2555br /
LAS
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 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
11 matches
Mail list logo