Results 1 to 12 of 12
- 06-17-2010, 09:20 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 4
- Rep Power
- 0
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
- 06-17-2010, 01:07 PM #2
Can you explain what "give page" means?i cannot give page with this url:
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."/>
- 06-17-2010, 01:27 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 06-18-2010, 03:21 AM #4
who is the account owner?so, and i cannot login in his login form
- 06-18-2010, 04:23 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 06-20-2010, 09:55 AM #6
Member
- Join Date
- Jun 2010
- Posts
- 4
- Rep Power
- 0
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
- 06-20-2010, 12:30 PM #7
You're using classes I'm not familiar with: HtmlPage and browser.HtmlPage page;
try{
page = (HtmlPage) browser.getPage("https://www.orbit.com/index.html");
System.out.println(page.asText());
}
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.
- 06-20-2010, 01:50 PM #8
Member
- Join Date
- Jun 2010
- Posts
- 4
- Rep Power
- 0
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
- 06-20-2010, 02:33 PM #9
The program is available at: http://normsstuff.zxq.net/NormsJavaTools/GetURLText.jar
- 05-20-2011, 09:55 AM #10
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
- 05-20-2011, 08:33 PM #11
A lot of my tools are in this zip:
http://users.mo-net.com/normandpaula...oolsSource.zip
Also here:
http://normsstuff.zxq.net/NormsJavaT...oolsSource.zipLast edited by Norm; 05-20-2011 at 08:43 PM.
- 05-20-2011, 08:38 PM #12
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Go back to previous page using session in JSP page
By gopikarikati009 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-23-2011, 10:30 AM -
I need some one to give me a hand
By HosHos in forum Advanced JavaReplies: 9Last Post: 09-05-2009, 03:18 PM -
how to give delay?
By shaluchandran in forum New To JavaReplies: 10Last Post: 12-17-2008, 05:57 PM -
setting the view to a jsp page from a self refeshing page
By deepal_205 in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 08-15-2008, 04:41 PM -
warning that page has expired and i need to refresh the page again
By 82rathi.angara in forum JavaServer Pages (JSP) and JSTLReplies: 5Last Post: 07-15-2008, 01:48 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks