Results 1 to 10 of 10

Thread: Web Handling scripts

  1. #1
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Web Handling scripts

    Hi friends,
    Is it possible to write scripts that can pass parameters to a website?

    Like I have an ISP which each time requires a username and password in order to connect to internet. Can I write a script that passes my username and password to their website and receive the log in successful message?

    If I can write that kind of script, what technologies do I need to know in order to write that script?
    If I can't write that kind of script is there any other way of automating that log in?

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,165
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Web Handling scripts

    Quote Originally Posted by c2tarun View Post
    Hi friends,
    Is it possible to write scripts that can pass parameters to a website?

    Like I have an ISP which each time requires a username and password in order to connect to internet. Can I write a script that passes my username and password to their website and receive the log in successful message?

    If I can write that kind of script, what technologies do I need to know in order to write that script?
    If I can't write that kind of script is there any other way of automating that log in?
    For a GET (parameters in the URL) a plain WGET will do it.

    For a POST, use WGET with --post-data

    To figure that out, use some HTTP header display/logger during a connection (LiveHTTPHeaders for Firefox, for instance).

  3. #3
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Web Handling scripts

    Quote Originally Posted by ofnuts View Post
    For a GET (parameters in the URL) a plain WGET will do it.

    For a POST, use WGET with --post-data

    To figure that out, use some HTTP header display/logger during a connection (LiveHTTPHeaders for Firefox, for instance).

    Thanks for replying, can you please elaborate a bit. What do you mean by WGET? All I know is WGET is a download manager.
    Are you suggesting that I should retrieve the page using WGET and check whether the parameters are passed throught GET or POST? And then some how use the same WGET to send the data as well?

    I'll also try to look into your HTTP header display/logger today. Can you please suggest some logger for Google Chrome and rekonq

  4. #4

    Re: Web Handling scripts

    Windows assumes the user is an idiot.
    Linux demands proof.

  5. #5
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,165
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Web Handling scripts

    Quote Originally Posted by c2tarun View Post
    Thanks for replying, can you please elaborate a bit. What do you mean by WGET? All I know is WGET is a download manager.
    Are you suggesting that I should retrieve the page using WGET and check whether the parameters are passed throught GET or POST? And then some how use the same WGET to send the data as well?

    I'll also try to look into your HTTP header display/logger today. Can you please suggest some logger for Google Chrome and rekonq
    No, I meant ot use a logger to see what requests are sent by your browser, and then emulate them with wget (which I don't categorize as a "download manager", but as a command to issue arbitrary HTTP requests....)

  6. #6
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Web Handling scripts

    Quote Originally Posted by ofnuts View Post
    No, I meant ot use a logger to see what requests are sent by your browser, and then emulate them with wget (which I don't categorize as a "download manager", but as a command to issue arbitrary HTTP requests....)
    Hi I downloaded httpfox addon for Firefox and tried to open simple website like www.google.in I got the following page.

    httpfox.jpg

    Can you please explain me the ouput??

  7. #7
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Web Handling scripts

    Quote Originally Posted by ofnuts View Post
    No, I meant ot use a logger to see what requests are sent by your browser, and then emulate them with wget (which I don't categorize as a "download manager", but as a command to issue arbitrary HTTP requests....)
    Hi I downloaded httpfox addon for Firefox and tried to open simple website like www.google.in I got the following page.

    httpfox.jpg

    Can you please explain me the output??

  8. #8
    Join Date
    Apr 2012
    Beans
    2

    Re: Web Handling scripts

    Not to say you shouldn't try writing this script, that would be great practice; however most routers provide this functionality built in. Just thought I would let you know.

  9. #9
    Join Date
    Aug 2010
    Location
    INDIA
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Web Handling scripts

    Quote Originally Posted by ecnahc515 View Post
    Not to say you shouldn't try writing this script, that would be great practice; however most routers provide this functionality built in. Just thought I would let you know.
    I checked, this feature is not available with my router.
    And I really want to write this script. Meanwhile I was reading about curl and I think I can use curl + php to write this kind of script. I'll post if I am able to do this successfully.


    Please reply if anyone have suggestions regarding writing this script.
    Thank you.

  10. #10
    Join Date
    Mar 2009
    Location
    Buenos Aires, AR
    Beans
    2,325
    Distro
    Ubuntu

    Re: Web Handling scripts

    Google for "UserScript.JS"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •