> I need a little assistance with pulling down a page using HTTPClient,
> if someone with experience has a moment...
[quoted text clipped - 17 lines]
>
> --Dale--
I'm not sure about that (I worked a lot with POST method),
but you could allocate a GetMethod object like
GetMethod get = new
GetMethod("http://some.domain.com/somePath/someProggy.dll?ThisGuy&name1=value1&name2=value2");
and than do something like that
HttpClient client=new HttpClient();
client.executeMethod(get);
Let me know if it work
Cheers
jock
Dale - 11 Nov 2003 00:48 GMT
> > Name value pairs handled through NVPair are fine, but what about if I
> > want to read a page normally reached like this:
[quoted text clipped - 7 lines]
> >
> > But where does "ThisGuy" go?
> GetMethod get = new
> GetMethod("http://some.domain.com/somePath/someProggy.dll?ThisGuy&name1=value1&name2=value2");
[quoted text clipped - 3 lines]
> HttpClient client=new HttpClient();
> client.executeMethod(get);
jock, Thanks for the advice, but I think I must be using an old
version or something. I didn't go into it, but I create an
HTTPConnection with a domain and port, then call the Get method with a
page and formData. The documentation doesn't say anything about
"GetMethod" or "executeMethod". The version I have came with a GNU
license dated 1999 and "Copyright (c) 1996-2001 Ronald Tschalär"-
maybe there's an update?
Dale - 11 Nov 2003 02:59 GMT
I found the latest version at
http://jakarta.apache.org/commons/httpclient/downloads.html
As usual with these things, the old usable version has been picked-up
and changed to such an extent that my old code won't run with the new
stuff (even if I could figure out exactly what to download,
dependencies and all). I noticed that NVPair is gone. So, one day
when I have plenty of time, I'll think about switching over (sigh).
--Dale--