URL Validation & Content Checking

Hi All
I'm new to Cold Fusion, in fact Web Programming itself and
would like to get some help from the members here.
I'm looking for some ideas/suggestions on how to check the
content of the URL.Is there any way to capture to raw url from the
browser at any given point in time?
I did check the #cgi.querystring# variable, but it returns
null string.
thanks

jdeline wrote:
> ... one other case that excapes me.
>
also from a link in an email message...
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com

Similar Messages

  • Cannot construct URL for runtime check using entries in SLD

    Hi,
    we are using high availability for PI 7.1 and are facing to the problem to construct the url for Communication channel monitoring etcv. in rwb.
    In the exchange profile it looks good. Is there another place to check parameters for sld?
    Thanks in advance
    Frank
    Message: Cannot construct URL for runtime check using entries in SLD for component af.rbi.s3p1028; correct the entries in SLD
    Stacktrace:
    com.sap.aii.rwb.exceptions.OperationFailedException: Cannot construct URL for runtime check using entries in SLD for component af.rbi.s3p1028; correct the entries in SLD
    at com.sap.aii.rwb.core.XIJavaRTCComponent.getConnector(XIJavaRTCComponent.java:211)
    at com.sap.aii.rwb.core.XIRTCComponent.ping(XIRTCComponent.java:209)
    at com.sap.aii.rwb.web.componentmonitoring.model.CompTestModel.doPing(CompTestModel.java:623)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.doPing(CmDynPage.java:428)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.updateTests(CmDynPage.java:528)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.selectNode(CmDynPage.java:555)
    at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmDynPage.process_treeClick(CmDynPage.java:484)

    Hello
    A combination of the notes below should resolve this error:
    #764176 Error in XI due to inconsistent SLD contents                
    #1117249 Incomplete Registration of PI components in SLD            
    #1334053 No automatic PI 7.10 SLD Registration                      
    #1278563 Specification of message server host in Exchange Profile   
    Regards
    Mark

  • Creating Validation to check Plant/Material

    Hi All,
    I have a problem can any one please give me the answer. Its very urgent.
    I got a request from the user stating that when he is entering any FI transaction and in that if he give the Material and Plant in the line item then validation has to check the Plant Material combination exits in table MBEW. 
    In our company we are using sets in the validation.
    Here is the existing code:
    Prerequisite:
    ( G/L IN FSS-ZDS2-S3-GLACCOUNT ( Margin segmentation enhancement ) OR
    G/L IN FSS-ZDS2-S3-GLACC-NETPRO ( Accounts for Net Proceeds SV43 ) )
    AND
    ( Activity type <> 'SD00' ) AND
    ( NOT Document type IN
    FSS-ZDS2-V38-BLART-EXCL ( Doc type to be excl from val Rev COPA ) )
    AND
    ( NOT Company Code IN
    FSS-ZDS2-BUKRS-EXCL ( Co codes that are non GSAP ) )
    CHECK:
    ( Plant <> '' )
    We can change in this existing code or we have to create A new Step in the line item.
    I am not so strong in the creating Validation can you please let me know how we have to write the logic.
    Regards,
    Venkatesh.M

    Nies,
    You can create a Validation Rule in transaction OPSI, where you can check the contents of the Plant field against the WBS Element in the Project Builder.
    However, only PS master data can be validated so checking the plant against a PR or reservation using OPSI isn't possible, unless you store that data in a PS user field and then perform the check.
    Please review note 440186, an FAQ note on Validation rules.
    Regards,
    Damien.

  • Validation to check Plant in project builder

    Dear All,
    Can we implement validation to check if user create PR or reservation could only on certain plant , for example FG05 . If they didnot put FG05. the error message will come up.
    Cheers,
    Nies

    Nies,
    You can create a Validation Rule in transaction OPSI, where you can check the contents of the Plant field against the WBS Element in the Project Builder.
    However, only PS master data can be validated so checking the plant against a PR or reservation using OPSI isn't possible, unless you store that data in a PS user field and then perform the check.
    Please review note 440186, an FAQ note on Validation rules.
    Regards,
    Damien.

  • Regex for URL Validation

    HI I am validating a field which takes a url as input from the user.So the url may contain http,https,ftp links or the user may specify the ip address.So can anyone please help me out to create a suitable regex for that.I just need to check the validness of link and not that it exists or not.

    here i have changed the regex as suggested by you but
    it returns true even for http://com.com@
    which is invalid.
    So it did not worked :-(It did not work, because you did not use it correct:
    public class Foo {
        private static boolean isValidUrl(String url) {
            return url.matches("(https?|ftp)://www\\.\\w+\\.\\w+");
        public static void main(String[] args) {
            String[] urls = {
                    "http://com.com@",
                    "http://www.com.com",
                    "http://www.com.nl",
                    "http://www.com.co.uk",
                    "http://www.com"
            for(String url : urls) {
                System.out.println(url+" valid? "+isValidUrl(url));
    }

  • Validation to check a field in Purchase Order.

    Dear friends ,
    Could we create an Validation to check a field in tcode ME21N, and this validation must check if field (header) is empty if yes when SAVE send error message"You could not create PO without release strategy , please contact IT area! "
    Rule to check it.
    Tcode ME21N
    if field EKKO-FRGSX or EKKO-FRGKE without value when Saving document so send an error message as discribed above not allowing user to save and create PO.
    Best regards
    Ale

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • URL / Web content filter

    hello all!  We are currently looking to replace our PIX 515e's with something newer.  The hang up is we want to look at something else besides Websense for our URL / Web Content filtering specifically because of price on renewal's.  We do not currently have IDS / IPS in place unless you count the Websense as doing that (maybe just a little bit?) and it would be nice to add that capability.  I've had experience with the Palo Alto box as a UTM in the past however we want to stick with Cisco where I'm at presently.  So what we're looking at is the new ASA 5515-X or 5525-X (HA pair) with IPS plus something else for the web filtering side (besides Websense).  We're getting quotes on the IronPort S160 however my guess is it's going to be just as pricy as Websense, probably the same for Scan Safe.  Right now we're at about 300 users but are looking to double that in the next year.  What are some other good solutions out there?  Easey to manage would be nice, less expensive would be nice, effective would be nice.  Can we get that all together?

    Don't know about traffic from multiple networks.  Offhand, I can't think of why this would be a problem for squid itself, other than it may complicate the config a little bit -- but it may not.  I did a quick Google and didn't see anything that indicated it may be a problem, but I probably didn't click as many links as you did
    Squid is just one option.  The disadvantage of squid compared to a paid-for service, in my opinion, is that you either have to get lists from somewhere or manually create your own block and allow lists.  Because of that, I use a combination of OpenDNS to block the obvious like porn, and then I use squid for more granular control like managament can view job searching sites, but other users cannot.
    With squid, you have so many options though.  For example, you could setup a scheduled task to download current lists from your source of choice and apply them to squid ACLs.
    I am a much smaller shop though, so this works for me.  300-600 users changes things up a little depending on what you want to accomplish.

  • Replace URLs in content and Location Header

    Hi,
    I would like to replace URLs in content and location header of response with the hostname of Azure API Management instance. There is a policy(Mask URLs in content) which helps in doing so but I could not find an example anywhere on how to use this policy
    to replace specific URLs.
    Thanks,
    Gaurav

    Hi Gaurav,
    The policy is easy to use, you can find it's reference here: https://msdn.microsoft.com/library/azure/7406a8ce-5f9c-4fae-9b0f-e574befb2ee9#MaskURLSContent
    Basically, it will replace the location header of response as well as URLs in the body that has the host name of the backend.
    Regards,
    Miao

  • URL validation - regular expression

    Hello,
    I searched but didn´t find.
    I need a simple method: isValidUrl
    I tried "new URL(url)", getting error, but it allows a simple url with space... I tried too org.apache.validator but it brought me problems with related .jar...
    I got one validation for e-mail, that work very well using regex. Does anyone have URL validation using regular expression?
    Thanks.

    ^(http|https|ftp)\\://[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\\-\\._\\?\\,\\'/\\\\\\+&%\\$#\\=~])*$
    It seems to work.Are you sure?

  • Contents Check Problem

    Hi,
    Not sure if anyone is able to assist but I am unable to run a Contents Check on one of my PO's - typically it's a PO that I could really do with checking mailbox sizes for. When I generate the check in Console One and set my e-mail address as the CC I just never get anything (nor does the administrator account) and if I ever try a standalone check using GWCheck after a couple of days of running the application hangs!
    Basically I need to check the accounts on that PO to see if any are failing to archive for any reason, so checking the mailbox size is the easiest way to do this.
    Are there any other ways to check this other than logging into each of the 278 accounts currently on the PO?
    Thanks in advance
    Mike

    Matthew
    That is really helpful information for me, I didn't know any of that
    before - I guess like a lot of people I ended up supporting our Groupwise
    messaging system as everyone else saw it as a "poison chalice" and didn't
    want to touch it - so all I have learnt so far has been on the job! I find
    it very interesting though :-)
    I can see from the last .ckl file that the check is still running through
    one of the Message databases. A dumb question now but if I want to get the
    details off the PO of user account sizes I assume when I run the Contents
    check I select both the User and Message databases? Or can I just select the
    User database? I have a rough idea of how messages are stored for users etc.
    Kind regards
    Mike
    "MPlumb" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Hi Mike
    >
    > Does the contents check actually start to run on the POA when you kick
    > if off via ConsoleOne? Sometimes the ngwcheck.db in the post office gets
    > screwed and doesn't accept new jobs.
    >
    > I usually just delete/rename the file and try to launch a new GWCheck
    > job. You'll be able to see if it's running by a long standing file queue
    > on the POA screen. Once the contents check has gone through all the
    > OFFILES folders it will then spawn the individual user checks and you'll
    > see a whole heap of file queues on the POA. If you check in the folder
    > path-to-po\wpcsout\chk\ you'll see a .ckl file with a current (or very
    > recent) date/timestamp. If you copy this elsewhere (you won't be able to
    > open it directly) and open it in Note/Wordpad you'll see how far it's
    > got through the process.
    >
    > Our contents checks on one huge post office take up to 5 days to run on
    > the server. The majority of the time is in the first part of the process
    > when it's going through the millions of files in OFFILES, checking the
    > ckl file will give you an idea of where it's at.
    >
    > Like you're experiencing if we try a standalone job it always
    > crashes...
    >
    > Matthew
    >
    >
    > --
    > MPlumb
    > ------------------------------------------------------------------------
    > MPlumb's Profile: http://forums.novell.com/member.php?userid=2199
    > View this thread: http://forums.novell.com/showthread.php?t=441192
    >

  • Check URL Validity

    Hello, I'm trying to figure out how to check the validity of a URL. I have wrote something, but it's not exactly what I want. Here is what I have:
         public boolean URLCheck(String checkme) {
              if((checkme.contains("http://") || checkme.contains("https://") ||
                        checkme.contains("ftp://")) && (checkme.contains(".edu") ||
                        checkme.contains(".com") || checkme.contains(".net") ||
                        checkme.contains(".org"))) {
                   return true;
              else{
                   output.setText("Bad URL.");
                   return false;
         }This is obviously very flawed, it only checks the protocol and the end of the server address (com,org,net,etc...).
    I would like to write a piece of code that could check if the URL is in this format, but I'm not sure where to begin.
    < url > ::= < protocol >://< server_address >/< local_address >
    < protocol > ::= http | https | ftp
    < server_address > ::= < host >.< domain > | < host>.< domain >:< port >
    < host > ::= < alphanumeric_character_string >
    < domain > ::= < alphanumeric_character_string > |
                   < alphanumeric_character_string >.< domain >
    < port > ::= < numerical_string >
    < local_address > ::= ~< login_name >/< location > | < location >
    < location > ::= < null_string > | < file_name > |
                     < path >/ | < path >/< file_name >
    < path > ::= < directory_name > | < directory_name >/< path >I'm not asking to have the code written for me, but I was wondering if someone could tell me how I could go about doing something like this.
    Thank you in advance!

    Thank you, here is what I tried:
         public void grabURLContents(String contents) throws Exception {
              try {
                   URL inputFile = new URL(contents);
                   BufferedReader in = new BufferedReader(
                                  new InputStreamReader(
                                  inputFile.openStream()));
                   String inputLine, storage = "";
                   while ((inputLine = in.readLine()) != null)
                       storage += inputLine +"\n";
                   output.setText(storage);
                   in.close();
              catch(Exception e) { output.setText("BAD URL: \n" + e); }
         }The only problem with this is: when I enter a url that obviously doesn't exist such as http://awdawfagasegr.com it still prints the html contents of my ISP's "Page not Found" page. Is there any way to prevent this?
    Thank you for your help by the way. Sorry if I seem very ignorant, I am not familiar with Java's URL class.

  • Check for URL validity

    Ive done a quick google, and there are several methods by which to do this, but seem to tend towards http URLS.
    Essentially i just need to check if an ftp address is valid. i.e. There is a server there that responds in some fashion.
    Connection isnt necessary.
    Thanks

    JamesBarnes wrote:
    Essentially i just need to check if an ftp address is valid. i.e. There is a server there that responds in some fashion.
    Connection isnt necessary.Yes, it is. The only way to tell if there's an ftp server responding at some address and port is to connect to it.
    It's generally pointless to do these kinds of tests. If the URL class provides validation of the format, take what you can get there to see if it at least could be legal vs. is clearly totally bogus, but other than that, just try to connect. If you can, it's valid. If you can't, then either the server is not running or there's no network path to it. Diagnosing that is outside the scope of your application. (Unless you're writing a network services monitoring/management tool.)
    Even if you had some separate test and it succeeded, between the time that test passes and you try to connect, the server could shut down or a network problem could develop, so you cannot assume that just because the test passes, you can connect. Your connection and usage code will still have to handle communication failures.

  • Getting Invalid URL error while creating the app even though it's returning valid content from browser.

    Hi ,
      i am trying add RSS section with URL http://api.foxnews.com/proxy/content/v2?sort=date desc&omitHeader=true&api_key=cc23011f-3ace-40a4-bb63-bfa654af5bc8&format=full-content-rss.xml&rows=20&q=content_type:article AND image_url:*
    AND section_path:fnc/entertainment , and it's giving invalid URL error. like @ Invalid Url, use http or https://[domain]. Please help what's going wrong with this URL content. 

    I've recently deployed an application in Websphere and HTTPServer and have Oracle on the DB back-end. Tim, apparently your login problem happens inside the Websphere. You will have a better chance to ask this question in IBM's forums.

  • How to check URL validation in webdynpro?

    I get the error message in the webdynpro application of nw04 as followed:
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=file:
    wdfd00184026a\ECM\CMIS\PlugFest
        at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
        at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
    Does the system provide the function to checkURL so as to avoid the error?
    Thanks for help!

    Hi,
    You can create a simple type with built-in type as String. Then maintain a format as ##:##. But this will not restrict the user from entering junk value on the client side, a validation will be performed in the next request-response cycle.
    Regards,
    Satyajit.

  • How to get content check in info

    Hi,
    I have created a custom check in form and it contains few fields and on is redirected to confirmation page. In the confirmation page, I want to display
    the content id, title, author date,keywords all from the previous screen where user entered the values.
    I am using the following method to get the info but its not working.
    ***************************Check In page**************************************************************************************
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!--$include ss_layout_head_info-->
    <title>(untitled)</title>
    <script id="ssInfo" type="text/xml" warning="DO NOT MODIFY!">
    <ssinfo>
    </ssinfo>
    </script>
    <script type="text/javascript">
    var checkinService = "CHECKIN_NEW";
    function postCheckIn(form)
         alert("insde js")
    form.IdcService.value = checkinService;
    form.dSecurityGroup.value = form.SecurityGroup.value;
    alert(form.SecurityGroup.value);
    form.dDocType.value = form.DocTypes.value;
    alert(form.DocTypes.value);
    form.dAuthor.value = form.Authors.value;
    alert(form.Authors.value);
    form.submit();
    </script>
    </head>
    <body>
    <form name= "Checkin" enctype="multipart/form-data" method= "post" action = "/idc/idcplg">
    <input type = hidden name = "IdcService"/>
    <input type = hidden name ="primaryFile"/>
    <input type = "hidden" name ="dSecurityGroup">
    <input type = "hidden" name = "dAuthor">
    <input type = "hidden" name = "dDocType">
    <input type =hidden name= "RedirectUrl" value= "http://localhost:7771/marketingkitportal/index.htm"/>
    Title<input type="text" name = "dDocTitle"> <br>
    <!--Generating security group from content server -->
    security group <select id="SecurityGroup" name="SecurityGroup">
    <option selected value="0">
    - please choose one -
    </option>
    <!--$rsMakeFromList("estSecurityGroup","securityGroups","estSecurityGroupName")-->
    <!--$ loop estSecurityGroup -->
    <option value="<!--$estSecurityGroupName-->"><!--$estSecurityGroupName-->
    </option>
    <!--$ endloop -->
    </select>
    <br>
    <!-- Generating doc authors from content server -->
    Author <select id="Authors" name="Authors">
    <option selected value="0">
    - please choose one -
    </option>
    <!--$rsMakeFromList("estAuthors","docAuthors","docAuthorName")-->
    <!--$ loop estAuthors -->
    <option value="<!--$docAuthorName-->"><!--$docAuthorName-->
    </option>
    <!--$ endloop -->
    </select><br>
    <!-- Generating document types dynamically that are available in contnet server -->
    Type <select id="DocTypes" name="DocTypes">
    <option selected value="0">
    - please choose one -
    </option>
    <!--$rsMakeFromList("doc_types","docTypes","docTypeName")-->
    <!--$ loop doc_types -->
    <option value="<!--$docTypeName-->"><!--$docTypeName-->
    </option>
    <!--$ endloop -->
    </select>
    <br>
    PrimaryFile1<input type = File name = "primaryFile"> <br>
    Confidentiality: <select name="xConfidentiality" id="xConfidentiality" style="WIDTH: 250px">
    <option value="0" selected>
    Please select one
    </option>
    <!--$rsMakeFromList("estConfidentiality","xConfidentiality.options","confidentialityName")-->
         <!--$loop estConfidentiality -->
         <option value="<!--$confidentialityName-->"><!--$confidentialityName--></option>
         <!--$endloop-->
    </select>
    <input type=button name=javaSubmit value="Check In" onClick="postCheckIn(this.form)"> <br>
    </body>
    </html>
    ***************************Confirmation page************************************************************
    <h2>Check In Confirmation for '<!--$dDocTitle-->'</h2>
         <!--$executeService("DOC_INFO")-->
         dID                         : <!--$getValue("DOC_INFO","dID")-->
         Content ID                : <!--$getValue("DOC_INFO","dDocName")-->
         Title                    : <!--$getValue("DOC_INFO","dDocTitle")-->
         Checked in by          : <!--$getValue("DOC_INFO","dDocAuthor")-->     
    Edited by: AbhijijitPr on Jun 2, 2010 6:00 PM

    Hi Thanks for the help.
    Can you also let me know if this is correct what I am doing.
    1. I created a custom confirmation template named "CHK_IN_CONFORM"(this is content ID) file name is "marketingportalcheckinconfirmation.hcst"
    2. I have put for RedirectUrl value as :
    document.getElementById('RedirectUrl').value="http://localhost:7771/idc/idcplg? IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=chk_in_conform&dID=<$dID$>&dDocTitle=<$url(dDocTitle)$>";"
    3. But when I submit, it says me "Referenced source HTML page not found. Unable to find the template page of form type 'chk_in_conform'."
    4. But when I change the IP and try to redirect I am able to see the dID and docTitle.
    5. Only Issue is to redirect to template page.
    If you can help me it will be great.
    Thanks,
    Abhijit

Maybe you are looking for

  • OC4J 9.0.3: ctx.listBindungs causes NameNotFoundException

    Hello, this is a repost of a message allready posted a couple of days before, see Re: JDeveloper 10.1.3.0.4 and JSTL Core 1.1 . But I can't find that posting in the list anymore, so here it' once again... Hello, I've got a problem with Context.listBi

  • How to create menu exits?

    hi experts can anyone tell how to create menu exits?

  • Error starting ORMI-Server.  Unable to bind socket: Address already in use:

    hi, I run the folowing command "start_oc4j.bat" to start Oc4j. It starts successfully. Then I start "BPEL PM Server". I get the following error, "Error starting ORMI-Server. Unable to bind socket: Address already in use: JVM_Bind". I understand the a

  • Strange Problem In NWDS while devloping  Adobe Offline Form

    I am facing a strange problem in NWDS while devloping Offline Adobe Form, the implementation code gets erased once the project is deployed, even the source file also gets deleted.

  • Mail Session Connection

    When I run the following code sample from a book, I get the error the following error ocurred: mail/TheMailSession not found in Mail-Mail-webapp The code follows: public void sendNotice(String recipient)     try{     Context initial = new InitialCont