Reading Web Pages Made Easy

Folks,
I am reading the HTML of a web page using the following code:
url = new URL(searchPageURL);
urlConnection = url.openConnection();
HTMLpage = new BufferedReader(new InputStreamReader(url.openStream()));
while (HTMLpage.readLine() != null)
My question is simple -> how come when I view the source in Internet Explorer I get something compared if I read it from my java app?
I would like to get what I see using IE - e.g. going View -> Source. Instead of seeing the compiled HTML.
Any ideas would be much appreciated.

The code you posted will not translate any HTML into
the browser display. Connecting to a URL like that
will just give the source of the HTML page. Thanks for your reply. I think you have miss understood me. I am not looking to translate the page into browser display, I would instead like to read the source code of the HTML page.
However, using the above code I get different source code compared if I view the 'source code' in the browser. It is as if the browser source code is prior to compiling any JavaScript or embedded code.

Similar Messages

  • HT4597 can I publish the web pages made with aperture in icloud?

    can I publish the web pages made with aperture in icloud?
    thank you.
    Luis da Cruz

    iCloud does not provide website hosting: you will need to find another hosting service - there are plenty to choose from.

  • Read web page content via Sockets

    Hey,
    I have to write a program that will read web page content, using sockets.
    I got that piece of code and it works for most pages:
    Socket socket = new Socket(address, 80);
              BufferedReader input =
                   new BufferedReader(
                        new InputStreamReader(socket.getInputStream()));
              PrintWriter output =
                   new PrintWriter(socket.getOutputStream(), true);
              output.println("GET " + pageName);
              String response = "";
              String curline  = input.readLine();
              int i=1;
              while(curline != null){
                 response += "\n" + curline;
                   curline   = input.readLine();
                   System.out.println(i + curline);
                   ++i;
              output.close();
              input.close();but not for the one it is supposed to work:
    http://portalwiedzy.onet.pl/tlumacz.html
    I could get it to work using this:
    URL url = new URL(host + query);
    URLConnection uc = url.openConnection();but I really have to use sockets.
    Any advice, people? :-)

    There's an RFC that goes over the HTTP protocol (or rather, several RFCs for the several versions of the protocol). You probably want to google for that and use it as a reference for this project.

  • Reading web pages through forms

    Hi all there,
    I am using forms6i, I am having few html pages, now i want to read contents of those pages and feed them into a form item. can any body give me an idea how it can be done?
    thanks in advance

    This looks like a job for utl_http.
    DECLARE
      req   UTL_HTTP.REQ;
      resp  UTL_HTTP.RESP;
      value VARCHAR2(1024);
    BEGIN
      req := UTL_HTTP.BEGIN_REQUEST(
        'Reading web pages through forms
      UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');
      resp := UTL_HTTP.GET_RESPONSE(req);
      LOOP
        UTL_HTTP.READ_LINE(resp, value, TRUE);
        DBMS_OUTPUT.PUT_LINE(value);
      END LOOP;
      UTL_HTTP.END_RESPONSE(resp);
    EXCEPTION
      WHEN UTL_HTTP.END_OF_BODY THEN
        UTL_HTTP.END_RESPONSE(resp);
    END;
    /

  • How to center web page made in indesign cs5

    Hi everyone,
    I'm new to this forum and I hope I'll get help, because I need it
    I've made a web page in indesign cs5, exported in SWF and generated HTML.
    My swf file looks good, but my html file is not centered, web page is positioned
    in upper left corner, and I want it to be in the center.
    How can I put it there?
    Thnx very much!
    Hresta

    I know ID is not the best option for a website, but I need it that way.
    I know html/css, but my generated html file contains javascript which
    I'm not familiar with :/
    There's no div so I don't know where to put my auto margins?
    Simply on top of the html file?
    Thnx anyway!!

  • Web page made in ID CS5 issue

    Hello, I created a web page (4 pages) in InDesign CS5. I export as an interactive PDF and the page centers in Acrobat fine. When I export as an SWF file it throws the page into the upper left corner (see my link) How do I get the content to stay centered in a browser? Thanks, Alan
    http://diakonia.drivehq.com/Bob/CenterTest1.html

    The position of your swf is set in the HTML shell. If you want the swf centered both vertically and horizontally, you'll need a nested table (there might be away to do it with CSS—I've never been able to get the vertical centering with CSS).
    I don't use the AC_FL_RunContent javascript for loading swfs (most Flash developers use SWFObject), but you could try replacing your body content with this table with the script inside and see if it works.
    <body bgcolor="#999999">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="middle">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td>
    <!-- LOADING SCRIPT HERE-->
    <script language="JavaScript" type="text/javascript">
    <!--
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
    // embed the flash movie
    AC_FL_RunContent(
    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,2,0',
    'width', '1024',
    'height', '768',
    'src', 'CenterTest1',
    'quality', 'high',
    'pluginspage', 'http://www.adobe.com/go/getflashplayer',
    'align', 'middle',
    'play', 'false',
    'loop', 'false',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'CenterTest1',
    'bgcolor', '#999999',
    'name', 'CenterTest1',
    'menu', 'true',
    'allowFullScreen', 'true',
    'allowScriptAccess','sameDomain',
    'movie', 'CenterTest1',
    'salign', ''
    ); //end AC code
    } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<p>This content requires version '
    + requiredMajorVersion + '.' + requiredMinorVersion + '.' + requiredRevision + ' '
    + 'or higher of the Adobe Flash Player.</p>'
    + '<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
    // -->
    </script>
    <noscript>
      This content requires the Adobe Flash Player.
      <a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a>
    </noscript>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>

  • I have to upload 150 web pages made in photoshop

    I would like to find out an easy way to upload a folder of web page HTMLs with their image folder from within dreamweaver. I have many files which were batch produced. There must be some way to do this.  I would so greatly appreciate finding out how to do this. †hanks Dave

    # 1  Define a local site folder in Dreamweaver for your project files.
    Site > New Site >...
    #2  Add the remote server log-in details provided by your web host. 
    FTP:
    Host:
    Host directory: (if required)
    Log-in:
    Password:
    Test to confirm connection.
    #3  From the Files Panel in Dreamweaver click on YourSiteName and hit the upArrow to PUT files to remote server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Viewing other web pages made with iWeb

    Is there some kind of directory to look up other web sites made with iWeb and Published with .Mac?

    Hi Christin,
    there are tons of iWeb created websites here:
    http://discussions.apple.com/thread.jspa?threadID=1094805&tstart=100
    http://www.iwebusersites.com/
    Regards,
    Cédric

  • Can I import web pages made on another computer to iWeb?

    I have more than one Mac, and while in the hospital celebrating the birth of my son, I made a few pages on iWeb with my iBook.
    Once home I wanted to transfer those to my G5 for editing. How do I do that?

    ilovetrainskc:
    Yes you can do that. You can either merge the two Domain.sites files into one with iWebSites or use them independently by renaming one of the to SiteName.sites and then use iWebSites to open them independently and publish independently.
    I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process.
    This lets me edit several sites and only republish the one I want.
    Do you Twango?

  • Link to iTunes music store from a web page created in iWeb

    Is there a way to create a link to the iTunes music store from a web page made in iWeb. I'd like to make a list of songs, and link each one to the song on the music store.
    G5 Dual 2.7 GHz   Mac OS X (10.4.7)  

    James, am I right in assuming, then, that one has to
    have purchased that iTune from the iTunes Store? So,
    logically then, if I have song that I copied from a
    CD in my iTunes, iWeb would not link to it?
    Sure, you can link your own music .mp3 files this way...but it doesn't go directly to your music library. What you would do is to have a copy of your music file saved to the desktop. Then make a link to file (one of the options in the Inspector Hyperlink tab) to this music file. When you publish your page, a copy of the music file will be uploaded to your site as well...so that people clicking on the link that you made can download the file.
    You can also drag in your music file to iWeb and use QT to play the music file on your webpage.

  • Malfunction with Web Page Buttons/Tabs

    I am running the latest versions of Flash Player, and I run Windows 7. Until a few days ago, I was able to use the Internet normally. Now I have lost some function: The browser seems to read web page tabs and some buttons (although curiously not all) as images instead of as links. Even then, I cannot always log into my account on a given site, nor can I switch tabs.
    For a specific example, on my local library's web page, I cannot place a hold using the Hold button either in the catalogue search screen or in the item's record. I cannot log onto yugiohcardmaker at all. I cannot switch tabs on the Aeria Games Free AP offers page. I can still log in on other pages, so this loss of partial function is curious and frustrating.
    I do not know whether this is an issue with Flash Player, but the last time I had compatability issues with Real Player and Photobucket, software versions were part of the issue. Please let me know what you find. I have tried using Firefox and Chrome, and neither work with these functions.

    You would need a library card and account to test the libraries' buttons. If you have one, they can be tested on the Markham Public Library catalogue (http://markham.bibliocommons.com/search?t=smart&search_category=keyword&q=graphic+novels&c ommit=Search) and the Richmond Hill Public Library catalogue (http://richmondhill.bibliocommons.com/search?t=smart&search_category=keyword&q=graphic+nov el&commit=Search). Both use the same system.
    Here is Yugiohcardmaker's log-in page: http://forum.yugiohcardmaker.net/index.php?app=core&module=global&section=login.
    Here is Aeria's free AP offer page: http://www.aeriagames.com/offers.
    It is easy to register so you can test both pages.
    Thank you for your help.

  • Web Pages/Journals

    Is there a way to view web pages made in Aperture without pushing the publish to .mac button. The option is there if it's a web gallery, but I can't find a way if it's a web page or web journal.
    Thanks,
    Alan

    The files never go to the finder. Why would I export the files, then upload them to my .mac account. They go straight to my .mac account. I'm wanting a button in aperture to visit the web page. I don't understand why iweb has a visit button to go straight to a published website and aperture doesn't. iPhoto has an actual url link straight to web galleries in the upper left hand corner when you're looking at the web galleries you've created. It would be nice to not have manage bookmarks for every web page I put up. I need quick access to the webpages to email links to clients as they need them (or loose them). Is there a way to quickly get to a published website. I do not want to export them. If I export them to say the desktop, and I click on the index.html file it just opens the website from the desktop which doesn't give me the published url. That is what I need, and why I need to get to the PUBLISHED website and not an exported version.
    Thanks,
    Alan

  • How can I icrease the view size of a web page so that it is easier to read

    I have a problem reading small print on a web page. I would like to increase the viewing sizeto a larger per centage (150% vice !00%)

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • I built a basic Checkbox web page.  I want to add a time stamp everytime a check is made on the page.  How do I do that?

    I built a basic "checkbox page" with a list of bus numbers next to a check box.  once the check is made, I want Dreamweaver to insert the time that it was pressed right next to the bus number.  How do I do this?
    Any suggestions would be great.

    > I want Dreamweaver to insert the time that it was pressed right next to the bus number
    Sorry, Dreamweaver is just a development tool. You wouldn't have it insert the time. Your dynamic web page would do that.
    The best way would be to use AJAX, but a simpler method would be to have the checkbox trigger an event to submit the form. Then update the database with the timestamp. However, either method have the problem in that if the wrong checkbox is accidentally checked the form gets submitted. I think it would be better to use a submit button.
    Of course, all of this assumes you know Javascript and PHP or another scripting language and have a database setup.

  • Are there any widgets availble for creating a to-read list from web pages?

    I frequently find myself wanting to read specific pdf's or web page content but not having the time to do it when I find them. It would be lovely to have an easy to use storage space for them on the dashboard as I frequently use it keep myself on task.
    I know there are a wealth of apps that can save pdf content for later viewing (yojimbo, evernote, etc ..) but I'm specifically wondering if there is anything that either integrates those tools into the dashboard or just has a stand alone widget.
    Having the ability to "send to" from any browser to this widget for easy transfer and possible storage would be key.

    I just hand code my HTML forms because I know what I'm doing.  But if you prefer to use the Insert Panel > Forms tab, you'll need to check out this HTML5 forms tutorial by David Powers.
    Making HTML5 Forms in DW CC (video)
    http://tv.adobe.com/watch/learn-dreamweaver-cc/html5-forms-workflow/
    Next, use CSS to style your form labels, legends, fieldsets, input fields and submit button.  See example below, view source in browser to see the code.
    http://alt-web.com/TEST/Basic-HTML5form-jquery.html
    Now that you have your HTML form, you need a script to gather, validate and process the form data.  Ask your hosting provider if they have a form-to-email script you can use.  Many hosts have scripts already on their servers which you can activate from your C-Panel or by referencing the script in your form's action attribute. 
         <form action="path-to-form-on-server/form-to-email-script.php">
    If your host doesn't have scripts you can use, find out which server-side programming languages your server supports -- PHP, ASP, ASP.net, Perl, etc..   This dictates what kind of scripts you can use.
    Ideally, you want to find a script that is a) secure, b) hides your e-mail address from robots and c) has built in spam prevention.
    http://foundationphp.com/tutorials/email.php
    Nancy O.

Maybe you are looking for

  • Multiple email accounts on Mail issue

    Hi there, just wondering if anyone cn help with my Mail email issue. I have scoured the net but can't find anyone with the exact same or similar issue. For simplicitys sake, letes say I have 3 email accounts, [email protected], [email protected] and

  • Error while deploying an application

    Hi Guyz i am getting an error while deploying my app on Sun One I have created the war file.But the prompt throwing me this error SEVERE: WEB0200: Configuration error in web module [task] (while initializing vi rtual server [server1]) com.iplanet.ias

  • Display Query View in WAD

    Hi, Anybody knows how to display the selected QUERY VIEW Description (i.e. in a text box) in a web template? (I know you can select a Query View in a drop down, so it should be possible!) Thanks, Max

  • SA540 Firewall Rules Fail when Optional Port Configured to Failover

    Today, I configured a client's SA540 for failover.  The primary WAN port is FIOS with a static IP address.  The optional port is Road Runner cable with a static IP address.  The failover tested successfully.  However, now the SA540 cannot be accessed

  • Impossible to modificate the reception number in iMessage

    Hi everyone, I have a problem, I bought an Iphone 4 S and I can't activate iMessage. When I check the configuration in Settings/Messages/Receive at, the phone number is from my old sim card which I never use and never been in this phone. And it's imp