ABAP to get content of web-page

Hello everyone! _
Can somebody help me with subject?
I want to get a content of web page in Internet, for example strings 'Hello world', and put in data base or on a screen.
May be you can give me some hints?
Thanks

Hello,
Try with These Fm's
Name of function module        Short text for function module
RMPO
RM_GET_WEBLNR_FROM_PRTNR
SADA
GET_WEBDBMSRV_URL_ADA
SFES
GET_WEBGUI_HELP_MODE
SHTM
GET_VERSION_WEB_OBJECT
SWRXML
SWR_GET_WEB_SERVER
W3_API
W3_GET_WEBAPP_DEFINITIONX
W3_API_MINIAPP
W3_GET_FGROUPS_FOR_WEBAPP
W3_GET_WEBAPP_DEFINITION
Regards,
Vasanth

Similar Messages

  • Get content of web page in java. Result - bad chars.

    My common task is - get content of page in java. And parse data on this page.
    When i am opening page in browser - i have a good look of all data. But when i am using java code for getting page content i have a bad content with bad chars.
    How to do it right?
    Thanx in advance!
    public static void main(String[] args) {
                 String url_get_page = "http://www.pai.pt/search.ds?activeSort=name+-maindocflag|asc&distSort=false&encodedRefinement=namechar1..%3d..^A%24..%26..A&what=Advogados&startingPageNumber=1&stageName=What+search&originalOffset=1&expandWWWSearch=false&myplaces=false&distance=50&searchType=www&phoneNumberSearch=false&advancedSearch=true&alphaRefineable=AN4683|BN317|CN2373|DN696|EN704|FN1549|GN456|HN539|IN670|JN3704|KN8|LN1433|MN4143|NN606|ON318|PN1727|QN9|RN1383|SN1522|TN484|UN14|VN677|WN16|XN8|YN4|ZN23|[0-9]N0&excludeZone=false&restoSearch=false&firstMaxRank=43522&previousPath=search";
                 StringBuffer result = new StringBuffer();
                 URL url;
              try {
                      url = new URL(url_get_page);               
                         HttpURLConnection connection = null;
                             connection = (HttpURLConnection) url.openConnection();                       
                     connection.setRequestMethod("GET");
                     connection.setDoOutput(true);
                        connection.setReadTimeout(10000);           
                        connection.setRequestProperty("Host", "www.pai.pt");
                        connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6");
                    connection.setRequestProperty("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
                    connection.setRequestProperty("Accept-Language", "ru,en-us;q=0.7,en;q=0.3");
                    connection.setRequestProperty("Accept-Encoding", "gzip,deflate");
                    connection.setRequestProperty("Accept-Charset", "windows-1251,utf-8;q=0.7,*;q=0.7");
                    connection.setRequestProperty("Keep-Alive", "115");
                    connection.setRequestProperty("Connection", "keep-alive");
                    connection.setRequestProperty("Referer", "http://www.pai.pt/search.ds");
                     connection.setRequestProperty("Cookie", "MfPers=12678646695048a98819027298bf50127329f8c315e8f; vuid=8a98819027298bf50127329f8c315e8f; ptkn=40EAFA18-5758-F374-F570-A0480F306222; WT_FPC=id=174.142.104.57-1456441520.30063880:lv=1267888167073:ss=1267888167073; __utma=76091412.2059393411.1267864686.1267878351.1267891770.4; __utmz=76091412.1267864686.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); BFHost=wd-web04.osl.basefarm.net; JSESSIONID=20C8FD4414F50F3AE361C487D0E3C719; MfTrack=12678917654148a98819027298bf50127329f8c315e8f; BIGipServerwd-web-pt=285284362.20480.0000; __utmb=76091412.1.10.1267891770; __utmc=76091412");           
                     connection.connect();
                     BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream(),"UTF8"));
                     String line;
                     while ((line = rd.readLine()) != null) {
                         result.append(line).append("\n");
                     connection.disconnect();
                   } catch (MalformedURLException e) {
                        e.printStackTrace();
                   } catch (IOException e) {
                        e.printStackTrace();
                System.out.println(result.toString());            
         }

    Now the code is
    public static void main(String[] args) {
                 String url_get_page = "http://www.pai.pt/search.ds?activeSort=name+-maindocflag|asc&distSort=false&encodedRefinement=namechar1..%3d..^A%24..%26..A&what=Advogados&startingPageNumber=1&stageName=What+search&originalOffset=1&expandWWWSearch=false&myplaces=false&distance=50&searchType=www&phoneNumberSearch=false&advancedSearch=true&alphaRefineable=AN4683|BN317|CN2373|DN696|EN704|FN1549|GN456|HN539|IN670|JN3704|KN8|LN1433|MN4143|NN606|ON318|PN1727|QN9|RN1383|SN1522|TN484|UN14|VN677|WN16|XN8|YN4|ZN23|[0-9]N0&excludeZone=false&restoSearch=false&firstMaxRank=43522&previousPath=search";
                 StringBuffer result = new StringBuffer();
                 URL url;
              try {
                      url = new URL(url_get_page);               
                     HttpURLConnection connection = null;
                    connection = (HttpURLConnection) url.openConnection();                       
                     connection.setRequestMethod("GET");
                     connection.setDoOutput(true);
                    connection.setReadTimeout(10000);           
                    connection.setRequestProperty("Host", "www.pai.pt");
                    connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2) Gecko/20100115 Firefox/3.6");
                    connection.setRequestProperty("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
                    connection.setRequestProperty("Accept-Language", "ru,en-us;q=0.7,en;q=0.3");
                    connection.setRequestProperty("Accept-Encoding", "gzip,deflate");
                    //connection.setRequestProperty("Accept-Charset", "windows-1251,utf-8;q=0.7,*;q=0.7");
                    connection.setRequestProperty("Keep-Alive", "115");
                    connection.setRequestProperty("Connection", "keep-alive");
                    connection.setRequestProperty("Referer", "http://www.pai.pt/search.ds");
                     connection.setRequestProperty("Cookie", "MfPers=12678646695048a98819027298bf50127329f8c315e8f; vuid=8a98819027298bf50127329f8c315e8f; ptkn=40EAFA18-5758-F374-F570-A0480F306222; WT_FPC=id=174.142.104.57-1456441520.30063880:lv=1267888167073:ss=1267888167073; __utma=76091412.2059393411.1267864686.1267878351.1267891770.4; __utmz=76091412.1267864686.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); BFHost=wd-web04.osl.basefarm.net; JSESSIONID=20C8FD4414F50F3AE361C487D0E3C719; MfTrack=12678917654148a98819027298bf50127329f8c315e8f; BIGipServerwd-web-pt=285284362.20480.0000; __utmb=76091412.1.10.1267891770; __utmc=76091412");           
                     connection.connect();
                     BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream(),"UTF8"));
                     String line;
                     while ((line = rd.readLine()) != null) {
                         result.append(line).append("\n");
                     connection.disconnect();
                   } catch (MalformedURLException e) {
                        e.printStackTrace();
                   } catch (IOException e) {
                        e.printStackTrace();
                System.out.println(result.toString());            
         }I have checked in FF encoding of page is - UTF8.
    The problem still exists.

  • Safari (and other browsers) very slow loading "content rich" web pages

    Hi,
    I'm a very "light" user of my mac, using it basically for surfing the web, uploading pictures and music, etc... and recently any web page that has a lot of content (examples are nfl.com, nba.com, nhl.com, mlb.com, united.com, continental.com) takes a very long time to load (most other web pages load normally). Safari (and Firefox as well) gets to the web page in an instant, but then sits there trying to load content (mostly high res pictures and ads I suppose), which sometimes takes minutes or just never fully downloads the content. I'm connected to the internet via ethernet (high speed cable modem from Time Warner), and they've already come out and verified that everything on their end is fine. I've followed the instructions posted on some of the other similar posts (emptying cache, deleting cookies, disenabling add on's, reseting safari, logging in as another user, etc..), and this has not helped. Since this problem is persistent with both browsers, I'm wondering if this may be an OS issue as opposed to a browser issue. If someone can walk me through a solution (keep in mind that I'm a novice), that would be much appreciated.
    Thanks!
    Message was edited by: Mr. Cady

    HI and welcome....
    Since this problem is persistent with both browsers, I'm wondering if this may be an OS issue as opposed to a browser issue
    Could be.
    Since the problems exist with multiple browsers, login to another user account on your Mac. Try Safari there. If you see the same behavior with Safari there, then follow the instructions here. You will need your install disc. The startup disk may need repairing. Even if Safari is ok in another account, it's still a good idea to check the startup disk. That way you can rule that out.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    (In Mac OS X 10.4 or later, you must select your language first from the installer menu)
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your startup disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. Make sure there is always 15% free space.
    Carolyn

  • HT1338 In my e mails, I cannot get to a web page that is mentioned in the body of the e mail

    In my e mails, I cannot get to a web page that is mentioned in the body of the e mail.

    That's probably a bookmark you have saved in Favorites.
    Tap bookmark icon>Favorites>Edit>Delete the bookmark

  • Dynamic content of web pages sample

    Dear ALL,
    I WANT TO BUILD DYNAMIC CONTENTS OF WEB PAGES/SITE BY
    JDEVELOPER 9I/10G. PLS TELL ME WHERE HAVE BEST SAMPLES/EXAMPLES/TUTORIALS.
    I KNOW OTN HAVE VSM TUTORIALS. BUT NOT ENOUGH.
    BEST REGARDS
    BORIS

    Boris
    BC4J Toy Store is a very good example.
    http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/bc4jtoystore.zip
    success
    -Jan

  • Summarizing content of web page

    Right now i am doing my final project which is summarizing the content of web page. After summarize, the system can read aloud the summary text.
    Anyone have any idea how to summarize text?
    Can you give me some source code or reference?
    Please... HELP ME...

    You could try using the summary="" attribute of tables in HTML, but that will only work if the site is compliant with web accessibility (Section 508) requirements. Other than that, it's probably not an easy thing to do at all. Apple tried to do this with documents on OS X, but they failed miserably as well.

  • HT1349 How do I get rid of web pages I'm through viewing?

    How do I get rid of web pages I'm through viewing?

    Not sure exactly what you mean but while you are using Safari, just tap the X on the left side of the tab to close a it. Only the active tab shows the X. You have to tap on a tab to make it active or the foremost window.
    If you want to clear the history - Settings>Safari>Clear History.
    These are instructions for Safari in iOS 5. What version are you running?

  • I was referred to this site because Internet Explorer would not allow me to navigate to web page. Therefore the tech-support staff sugested I try your site to get to the web page

    upon logging into this program open road x3 from the site realeflow.com. I get a msg "navigation to web page has been canceled" so I contacted the tech-support staff. They informed me that in the past this problem has occurred with internet explorer, so they referred your site to me, as a option to get into the web page from their site. I have never used your site to get into a web page before. So I do not exactly know how this works??????????

    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    See "Firefox connection settings" in [[Server not found]]
    You can find the connection setting here: Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select No Proxy
    Another possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that,.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • I've loaded Firefox, I get led to everything other than how to use it. Why can't I just get a usable Web page?

    I have uninstalled Firefox several times today. I attempted to reinstall and kept getting "update" pages that do not seem to lead to a Firefox browser. I've looked at the help pages and they lead to confusing but unhelpful sequences. I want to use Firefox to use bookmarks and to extend material that will be helpful to me as I pursue Web sites.
    I'm not interested in complex and multilayered until I can get basic functions operating as I expect them to operate.
    I started using Firefox 6 months ago and it worked fine. I liked it and it served me well. I recently updated to #37.0 and since then, I cannot get past the first page which instantly shifts to a page the give me options that are useless to me.
    Shou0ld I drop some of the plug ins?

    *1 '''[http://www.mozilla.org/en-US/firefox/all/ Download Firefox Full Installer For All languages And Systems]''' {web link}
    *2 '''[https://support.mozilla.org/en-US/kb/uninstall-firefox-from-your-computer Uninstall Firefox from your computer]''' {web link}<br>DO NOT remove your profiles.
    *3 After, reboot the computer. Then run the full installer.

  • Unable to create a Site Content in Web Page Composer

    Hi All,
    I am new to WPC and would like to explore more on the same. I tried following some blogs inorder to create and publish Web Pages.
    I was stuck at a point where we need to create a site content. I guess all the permissions required to access each folder is properly set.
    When I tried to create a content like for example an article... A window pops up which says please select a document type and I dont have any option to select whereas I have a cancel and next button at the bottom of the screen. When I click next nothing happens.
    Did anyone went through this issue? What am I doing wrong? Did I fail to set some role to the author creating content?? Author has wpc_editor_role though.
    Regards,
    Rekha Malavathu

    Hi Sandeep,
    The popup window (which I suppose is an XML Editor) doesnt have any UI Element to select when I try to create any content... may it be an Article, Linklist, etc...
    I am using WAS 2004S SP 14. As I mentioned, all the xml and xsl files are available in the folder and even in the KM Configuration.
    My problem is, I am unable to create a content as the popup window is blank... No UI Element to select or enter.
    Regards,
    Rekha Malavathu

  • Acrobat X Pro - Header & Footer content ? (web pages)

    We have thousands of Acrobat documents of converted web pages with this convention:
    Header (L-R): Title - [empty] - Date
    Footer: URL - [empty] - Page number
    This convention needs to be retained, but *many* web pages in Internet Explorer 10/11 simply will not convert using File | Print, and there seems to be no obvious way to reformat the header/footer content for use with the Acrobat X Pro IE10/11 'Convert' button.
    E.g. Acrobat X Preferences 'Convert to PDF' says 'There are no settings that can be edited in HTML'.
    Is there any way to reformat the default Header & Footer contents in IE10/11 'Convert web page contents to PDF' ? I'm using Win7 x64 Pro.  TIA
    Dave.

    It's a bit obscure, but the settings are on the conversion dialog.
    Open Acrobat on the desktop but don't open any documents.
    Tools > Pages > More Insert Options > Create PDF From Web Page
    Click 'Settings' and make changes as required, then cancel out of the creation dialog.

  • I get a shrunk web page

    When i open you tube page it opens with a shrunk size which one can hardly read.All other web pages open in a normal size.

    If that works, a common way to end up in that position is to be holding the Ctrl key down when you scroll the mouse wheel.
    If this nearly never happens to you, I wouldn't change how it works.
    If you get annoyed by zoom changes on a regular basis, you can turn off this feature. Here's how:
    (1) In a new tab, type or paste <strong>about:config</strong> in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste <strong>wheel</strong> and pause while the list is filtered.
    (3) Double-click <strong>mousewheel.with_control.action</strong> and enter the desired value from the following list, then click OK.
    0: Do nothing (ignore the wheel)
    1: Scroll the page
    2: Back to previous page or forward to next page in history
    3: Zoom in or out
    (For Mac, users, to change what happens with Command+ScrollWheel, double-click <strong>mousewheel.with_meta.action</strong>.)

  • Insert Html 5 content into web page

    With Flash being phased out, how can you insert HTML 5 content into existing web pages?
    I'm trying to figure it out but it's not working properly.

    You can easily load it into another page using an iFrame.

  • Transport content of Web Page Composer

    Hi,
    I want to transport web page composer content from the development environment to our test environment, how can this be done? I already tried using ICE but when I test it in the test environment no content is displayed, I assume it's because of some generated GUIDs.
    Bye,
    Timo

    Hi,
    In that case you might want to consider transporting through CTS+.
    Anyway, transporting Web page composer content is not different than transporting any other KM content.
    Please make sure you have followed [this procedure|http://help.sap.com/saphelp_nw70/helpdata/EN/47/276706548a2deae10000000a1553f7/frameset.htm] and in case you have please specify what exactly is not working in the target system. For example, if you go to /wpccontent repository can you see the content there at all?
    Roy

  • How do I save contents from web page to iWork

    This may be the wrong community so please let me know if it is? I want to save a document from a web page in Safari to iWork on iCloud.com. The document is of my son's USA hockey membership confirmation and I don't know how to save it to iWork or which application to save it to once I do? Numbers, Pages? Thank you in advance..

    I thought I was clear about what I'm trying to achieve... I want to view my document in either Pages or Numbers, because they are on both my Macs and iPhone/iPod touch's.
    Aug 25, 2012 2:57 PM (in response to Winston Churchill)   
    It's really just content on a web page but its information I need to have access to across all my devices from a MacBook Pro to iPhone and iPod touch. I want to be able to view it in the Pages iOS app and the OS X app.
    I just need to know the best way to save it, & in the fewest amount of clicks preferably.   

Maybe you are looking for

  • Problem with BAPI_DOCUMENT_CREATE2

    HI, I am creating document using  FM BAPI_DOCUMENT_CREATE2. In IDES, i am able to create with new status. But i am getting an error message as 'The status set requires a previous status'. What could be the problem? is it due to the additional pacthes

  • Resizing or moving an opacity mask along with the items inside it

    I'm trying to resize a opacity mask by doing transMaskItem.resize(   10, //scaleX,   10, //scaleY,   true, //[,changePositions]   true, //[,changeFillPatterns]   true, //[,changeFillGradients]   true, //[,changeStrokePattern]   0.1, //[,changeLineWid

  • Exporting Gerber file in Ultiboard 10 for school project

    I am trying to export a PCB design in Ultiboard 10 but the export option is grayed out on file menu. I am using the evaluation verison of Power Pro because I was told by tech support that my student verison does not allow exporting. I would great app

  • Jspell OAS installation

    Good Morning, I'm in the process of integrating Jspell with Forms. We are running Oracle Application Server 10g Release 2 (10.1.2.0.2) - Forms and Reports Services. I've installed Jspell (SDK version) into its own OC4J Instance, separate from OC4J_BI

  • PS CS4 on Vista x64 hangs when opening image...

    I've checked the forums and cant find anything quite like this... I've just installed (and updated) PS CS4 on a Vista x64 system - PS opens and seems to run just fine until I go to open an image (any image) - the image comes up but stays fuzzy and th