Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7568167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:51:16+00:00 2026-05-30T14:51:16+00:00

I want to load external content (from another domain) and simulate navigation, doing things

  • 0

I want to load external content (from another domain) and simulate navigation, doing things like programatically clicks and fill forms, probably using JQuery.

Explaining a little better: I need to navigate “automatically” through 3 pages, the first one is login area, where I’m supposed to fill login/pass fields, and submit. In the last one, I must fill some input fields, submit again, and get all html data from a report.

I was trying using a IFRAME and Jquery’s contents(), then I realized that I cannot do that due obvious XSS security issues. (http://jsfiddle.net/TbMyx/4/).

Before trying this way (client-side, js, Iframe, etc), I also tried using Java. Sending POST/GET requisitions into a Servlet, and I didn’t got any sucess on that either.

Any thoughts on that? At least, it’s possible task?
I’m a little negative on that, I don’t think this is really possible, based in my current knowledge, I just need some confirmation

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:51:17+00:00Added an answer on May 30, 2026 at 2:51 pm

    Yes, it is possible. Its called Web Scraping, and is fairly common.

    As you have learnt, it is not possible to do this on the client side using javascript due to security restrictions.

    On the server side, you have two options. a) Load up an actual browser and navigate the website just like a user would, or b) Use a headless browser, which is basically a library that simulates a real browser.

    Using a Headless Browser
    In general, this is a faster and easier approach, but it may not work for complex websites that depend on javascript.

    For java, HTMLUnit is a great library. Keep the fiddler request/response from your browser handy, because its possible the browser sends cookies or headers that are different from HtmlUnit. In general, if you match all the headers that the browser is sending, the website will respond correctly.

    Using an Actual Browser
    Use this only if your attempts with a headless browser fail. This approach brings up a browser and navigates the website just like a user does.

    You can use Selenium/WebDriver for this purpose. Be warned that running a browser in a server environment is actually resource expensive, and takes more time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to load content from an external page when the user clicks on
I want to create Ext.tree.TreePanel component and periodically load content from the external URl.
I'm using a jQuery function to load external content from another page on my
I need load external resources from another server like css, template, data... but I
Possible Duplicate: load content from external page into another page using ajax/query May be
I am trying to load a div from another domain and display it on
I am just starting to learn jQuery, and want to load content from a
I am using jQuery load, to load some data from an external file like
I want to load a desktop application, via reflection, as a Control inside another
I want to load 52 images (deck of cards) in gif format from my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.