Results 1 to 12 of 12
  1. #1
    ansar313 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default i cannot give this page with htmlunit

    in the name of god
    hi
    i cannot give page with this url:
    orbit.com
    so, and i cannot login in his login form
    please help me
    tanks in andvance
    bye

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    i cannot give page with this url:
    Can you explain what "give page" means?
    Are you trying to read a page from that site with a java program?
    If so, what is returned from the site? Please copy and paste here the full text of what is recieved.
    Here's the first part of what is returned when I read from that site:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html>
    <head>
    <META HTTP-EQUIV="Expires" CONTENT="Thu, 01 Jan 1990 00:00:00 GMT">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <meta name="description" content="Le nouveau portail de Questel pour des professionnels en brevet, design, et juridiques qui souhaitent une couverture exhaustive ainsi qu'un outil performant."/>

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by ansar313 View Post
    so, and i cannot login in his login form
    Or you want to any authentication? I cannot see anything on that page, not loaded at all. Can you please explain a bit more.

  4. #4
    gafa's Avatar
    gafa is offline Senior Member
    Join Date
    Jun 2010
    Posts
    107
    Rep Power
    0

    Wink

    so, and i cannot login in his login form
    who is the account owner?

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I think OP is the owner and wants to automatically login into the account. If the credentials are someone else then sorry I'm not dealing with this anymore.

  6. #6
    ansar313 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default

    in the name of god
    hi
    i use following code
    //*************************************
    public void login(String Username, String Password){
    HtmlPage page;
    try{
    page = (HtmlPage) browser.getPage("https://www.orbit.com/index.html");
    System.out.println(page.asText());
    }
    catch (Exception e) {
    System.out.println("Could not open browser window in orbit.com ");
    e.printStackTrace();
    }

    }
    and this output resulted:

    Jun 20, 2010 11:29:24 AM com.gargoylesoftware.htmlunit.IncorrectnessListene rImpl notify
    WARNING: Obsolete content type encountered: 'text/javascript'.
    Jun 20, 2010 11:29:29 AM com.gargoylesoftware.htmlunit.IncorrectnessListene rImpl notify
    WARNING: Obsolete content type encountered: 'text/javascript'.
    Jun 20, 2010 11:29:30 AM com.gargoylesoftware.htmlunit.IncorrectnessListene rImpl notify
    WARNING: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'https://www.google.com/uds/api/language/1.0/7790d1df6273b102039af0fa6a3121db/default+en.I.js', but got 'application/x-javascript'.
    orbit.com
    v1.2
    Loading, please wait
    BUILD SUCCESSFUL (total time: 13 seconds)


    in spite of this code work correct for other site
    please give me your code for read this site


    tanks in advance
    bye

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    HtmlPage page;
    try{
    page = (HtmlPage) browser.getPage("https://www.orbit.com/index.html");
    System.out.println(page.asText());
    }
    You're using classes I'm not familiar with: HtmlPage and browser.
    Are they giving the WARNINGs that you see printed?

    My code is a general purpose utility that will read from any site, with special code to read from some sites that I was working with.

  8. #8
    ansar313 is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default please give me your code or solution for reading this page

    can you give me your code for reading this web page?
    it is very very important for me
    tanks a lot

  9. #9
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

  10. #10
    xena_inf is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default Can we get this Jar as an API, to use from another Java code?

    Quote Originally Posted by Norm View Post


    thanks in advance.

  11. #11
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,397
    Rep Power
    25

    Default

    Last edited by Norm; 05-20-2011 at 08:43 PM.

  12. #12
    xena_inf is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default

    hi yes it is inside this archive,

    thank you very much!


    Quote Originally Posted by Norm View Post
    A lot of my tools are in this zip:
    http://users.mo-net.com/normandpaula...oolsSource.zip

    I don't know where I posted the GetURLText source code.

Similar Threads

  1. Go back to previous page using session in JSP page
    By gopikarikati009 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-23-2011, 10:30 AM
  2. I need some one to give me a hand
    By HosHos in forum Advanced Java
    Replies: 9
    Last Post: 09-05-2009, 03:18 PM
  3. how to give delay?
    By shaluchandran in forum New To Java
    Replies: 10
    Last Post: 12-17-2008, 05:57 PM
  4. setting the view to a jsp page from a self refeshing page
    By deepal_205 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 08-15-2008, 04:41 PM
  5. warning that page has expired and i need to refresh the page again
    By 82rathi.angara in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 07-15-2008, 01:48 PM

Posting Permissions

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