|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
How can I use WebClient to retrieve a page with CGI script?Hi,
I am trying to test some sites that use CGI scripts, and I would like to start with some specific parameters. For example, here is a url that I would like to start with: If I used the follow program, Java compile will report a "Malformed Url" error. URL url = new URL("http://hosted.where2getit.com/safeway/index720.html?form=locator_search&search=Go&addressline=08541");
HtmlPage page1 = (HtmlPage)webClient.getPage(url); Could anybody tell that how I shall solve this problem? Many thanks! -Andy ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: How can I use WebClient to retrieve a page with CGI script?Hi Andrew,
You are not using latest version, please use snapshot at http://build.canoo.com/htmlunit
I have another error:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "getElementsByTagName" of undefined (http://hosted.where2getit.com/w2gi/javascript/ace/1.74/W2GI_slippymap.js#2859)
Please try to isolate a minimal test case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html
Yours,
Ahmed ----Blog: http://asashour.blogspot.com From: Andrew Y. Yang <yuyang08@...> To: htmlunit-user@... Sent: Mon, October 26, 2009 10:35:20 AM Subject: [Htmlunit-user] How can I use WebClient to retrieve a page with CGI script? Hi, I am trying to test some sites that use CGI scripts, and I would like to start with some specific parameters.
For example, here is a url that I would like to start with:
http://hosted.where2getit.com/safeway/index720.html?form=locator_search&search=Go&addressline=08541
If I used the follow program, Java compile will report a "Malformed Url" error.
URL url = new URL("http://hosted.where2getit.com/safeway/index720.html?form=locator_search&search=Go&addressline=08541");
HtmlPage page1 = (HtmlPage)webClient.getPage(url);
Could anybody tell that how I shall solve this problem?
Many thanks!
-Andy
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
| Free embeddable forum powered by Nabble | Forum Help |