bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Regarding wget to download webpage


From: Ángel González
Subject: Re: [Bug-wget] Regarding wget to download webpage
Date: Fri, 20 Jan 2012 18:07:59 +0100
User-agent: Thunderbird

On 20/01/12 12:00, Bhargavi N wrote:
Hello Everyone,
I am extremely thankful to all of you for the help regarding wget. But still i am unable to get the right page downloaded.

Requirement:
I need to run adhoc sql query on remote web page. ie; collabnet. The webpage has text area where i can enter sql query and then click submit.

Once i submit sql runs and results are displayed in the page.
This REMOTE page is call to servlet ie; https://collabnet.net/servlets/adhocquery for example.

I want to pass SQL query as form data through POST/GET method and get the sql results page downloaded to my local directory on LINUX box. I am running wget on LINUX host on commandline / shell script.

I will invoke wget with the URL https://collabnet.net/servlets/adhocquery and formdata ie; SQL as --post-data "select * from emp". Finally i want to download the sql query results page to my local directory.

I tried all the options that you suggested me, but still nable to get the right page. Every time it is displaying me the index page for collabnet, which i do not need. I need to run the servelet page with the formdata passed to it.
What's the name of the field?
Supposing you entered that into a textbox called 'sqlquery', the post-data would look like:
--post-data "sqlquery=select%20*%20from%20emp".
(ie. name, '=', urlencoded query)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]