Thanks. That creates a great URL string, but when passed into (client/
get
gets this error:

java.lang.IllegalArgumentException (NO_SOURCE_FILE:0)
cmn

On Jul 20, 10:24 am, Mark Rathwell <mark.rathw...@gmail.com> wrote:
> (require '[clj-http.client :as client])
>
> (defn make-url [ca street-1 street-2 city state zip]
>   (let [url 
> "http://MailVerify/Lookup/chkAddr.asp?CA=%s&street=%s&STREET2=%s&CITY=...
> "]
>     (format url ca street-1 street-2 city state zip)))
>
> (client/get (make-url "xxx" "123 Some St" "Apt 24" "New York" "NY" "10026"))
>
> On Wed, Jul 20, 2011 at 10:09 AM, octopusgrabbus
> <octopusgrab...@gmail.com>wrote:
>
>
>
>
>
>
>
> > I've been looking at the examples for clj-http. I'm trying to map the
> > perl string (below) to clj-http's parameters.
>
> > $gInputUrl = "http://MailVerify/Lookup/chkAddr.asp"; . "?CA=" . $gCa .
> > "&STREET=" . $gAddrSubst1 . "&STREET2=" . $gAddrSubst2 . "&CITY=" .
> > $gCity . "&STATE=" . $gState . "&ZIP=" . $zip4Local;
>
> > Could someone point me to a similar get string?
>
> > Thanks.
> > cmn
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to