Monday "coding" challange

ok, so i stole this from the daily wtf, but i think it would be neat to come up with the source for this:
http://202.188.160.140/user/user_nec_download.asp?driver_location=c:\boot.ini
replace c:\boot.ini to the path to user_nec_download.asp to win, and share the goods.
maybe someone who understands iis can do this.

Hi,
If I understand correctly, you want something like:
SELECT  *
FROM     table_x
WHERE     entry_date     > TRUNC (SYSDATE) + ( CASE
                                WHEN  TO_CHAR ( SYSDATE
                                          , 'fmDay'
                                        , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If necessary
                                        ) = 'Sunday'
                                THEN  11
                                ELSE  10.5
                                 END
                             / 24
AND     entry_date     < TRUNC (SYSDATE) + 1
;If this is run on Wednesday, September 21, it will look for rows where entry_date is after 10:30 on September 21, but before midnight on September 22.
If you want to use a given DATE instead of SYSDATE, then replace SYSDATE with the given DATE. If you know that the given DATE is at midnight, then you don't need to use TRUNC.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
If the problem involves parameters, such as user input, then post a few sets of parameters, and the results you want from the same data for each set.
Always say which version of Oracle you're using.

Similar Messages

  • Need to run a report from monday to today

    Hi, I'm writing sql to run a report based on post date. It is to be hard-coded so that it runs every monday of the current week to today, and I am a bit weak in this area, any help would be appreciated, thanks!

    i think this might be closer to your requirement if i have correctly understand your posting. try DBMS_JOB for anonymous pl/sql block or package, procedures, and function that you want to execute as scheduled job and if you are in prior version than release 10.
    this DBMS_SCHEDULER is the same as DBMS_JOB but has more functionality such that it can run an external executable files and if you are in release 10 or later versions.

  • What is the best way to lay out color-coded Excel data in InDesign?

    I’ve been away from layout for some time. I now need to lay out color-coded Excel data (3 columns, 200 rows) in InDesign 5.5. The data will need to be in alpha order and each row will be color coded, with a color key at the top of the page. What is the best way to lay this out? Should I use the table tool and create a new style for each color that I need to use?
    Thanks for your help.

    I think this will work in CS3.
    Start off by inserting Styles of WEEK, Mon to Friday (as per left)
    Set the Week No. to Bullets and Numbering and insert as per screen shot
    Do the same for Days Monday through to Sunday
    Also set up Monday style NEXT STYLE to be Tuesday
    When you get to Sunday - loop the Styles back to WEEK style.
    Then as per first screen shot you just have to insert RETURNS all the way down to initiate the style.

  • Hard-coded endpoint port numbers in services-config.xml

    Is it possible to remove hard-coded port numbers in
    services-config.xml and replace them with variables? I'd like to
    deploy the same Flex application War file (including
    services-config.xml within it) to our Dev, UAT and then Production
    environments, for which the endpoints and port numbers must vary.
    Re-building the app for each environment isn't desirable.
    Has anyone else achieved this?

    Maybe I can clarify what I mean. I'm assuming that basically
    the same war file needs to be deployed twice to the same app
    server, as in the original example, excluding changes to config
    files (e.g. editing xml=ok, recompiling jars/swf=not ok).
    The problem arises because if you were to change the config
    file to use another port, it wouldn't make a difference to the
    client app, which has the port and destination compiled in. You
    would need to compile the app twice, once with the first port, once
    with the second.
    So my workaround is to compile (not deploy) with a config
    file containing two sets of destination channels, then in your
    deployed config files you remove one of the sets.
    Assuming you want to deploy two instances of an app into a
    single app server, there will 3 different configs, one used just to
    compile, and one for each of the two deployed instances.
    Config A (compilation config files, used only to compile the
    flex application, not used during server start up) contains:
    my-rtmp1, my-rtmp2, my-destination1, my-destination2.
    Config B (server 1-debug) contains: my-rtmp1, my-destination1
    Config C (server 2-release) contains: my-rtmp2,
    my-destination2
    So when you deploy two instances with Config B and Config C,
    there is no port conflict. The Flex app then has some parameter set
    in the wrapper (or the absence of said parameter could be the
    indicator) to tell it whether to use my-rtmp1 or my-rtmp2.
    I just tested this and it worked. The way I tested was to add
    two buttons to a the Flex app, one which connects to
    destination1and performs a fill, one which connections to
    destination2 and performs the same operation. This Flex application
    was compiled with config A.
    I start a server with config B, and the application starts
    fine, and the first button gets the fill as expected. The second
    button instantly crashes the entire browser with an illegal memory
    access exception. The second set of dest/channels aren't listening,
    since the server doesn't know anything about them in it's config
    file.
    So on the bright side, that confirms to me that you can
    compile an app with redundant channels and destinations, then
    choose which destination/channel you want to use at runtime.
    On the down side, being able to consistently cause a crash
    like that usually isn't a good sign. I'll look again on Monday, and
    raise a Flash bug if it's still present in the latest version.

  • Monday as first day of week

    Does anyone have a nice scalar function (I am using views) that can set Monday as day 1 of the week, through to Sunday as day 7.
    Weekday function would have been great but am using 2012.
    I already have a day of the week where Sunday is day 1 of the week so I gues I could use a function to re set all these but didn't know if there was something that people were already were using.
    Regards

    SELECT DATEDIFF(day, '19000101', SYSDATETIME()) % 7 + 1;
    SELECT DATEPART(weekday, DATEADD(day, @@DATEFIRST - 1, SYSDATETIME()));
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence
    Thanks Uri your 2nd solution worked for me.
    I have now coded it as a function.
    Regards

  • My iMovie keeps crashing, its my final year Uni project and its in on Monday... please help!, My iMovie keeps crashing, its my final year Uni project and its in on Monday... please help!

    Please please help me ! iMovie keeps crashing everytime I try to work on a project, it has happened before, so I deleted everything and it seemed to work but now its back, this is my final year Uni project and its in on Monday ... any help would be soooo appreciated !!

    With regard to the HD Questions:
    1.- You can copy the entire 40GB hard drive main folder (if you cam is a HG-10, it will be named "AVCHD"), and that way you have the original video stored wherever you want. In the future, you can get that folder from a hard drive or mounted as a disk image, and iM08 will think it is a camcorder and let you import again.
    2.- AVCHD gets converted to Apple Intermediate Coded (AIC) because AVCHD is not meant for "editing", but for storage and transfer. Now on AIC you can edit frame-specific, without killing your CPU. It is "good" that it gets converted.
    3.- Once you have processeD with iM08, and exported into AppleTV, you could erase everything, including the event, project, and appleTV file from your computer, as long as the file is in the actual AppleTV set-top box, and you do not erase it from there while syncing, you should be able to see it. That way you will save storage/disk space, because you are right, the AIC file is very large.
    However: You must understand, that if you need to recreate this AppleTV final file, you will have to start over, getting it from the Copied hard drive, import into iM08, create the project, and export to AppleTV, AGAIN, so you pick which one you erase, based on how much you need this file.
    As per you SD question, I do not use DV format, so I AIN'T GOT NO IDEA.
    Message was edited by: gusluz

  • ICal print in weekly view doesn't begin from monday but tuesday

    Hello,
    I faced a problem while trying to print a weekly view of my calendars. Even though I have adjusted the calendar in the setting so that the week starts from monday, every time I try to print a weekly view of my calendars, the weekly view is is alway for the dates Tuesday - Monday, NOT Monday - Sunday. I tried choosing in the printing view that the printing would start from the date 27th of october (monday), but instead, the first date on output was always Tuesday (28th). The same happened when i chose that area printed starts from next week - it starts it again from Tuesday not Monday.
    Any help for this?

    epee91,
    What setting do you have in System Preferences...>Language & Region>First day of week:?

  • Adobe Bridge CS6, Output to HTML Gallery coding issue.

    Adobe Bridge CS6, Output to HTML Gallery coding issue.
    I have created the html, JavaScript, css file using the output function in Bridge CS6, which nicely generates the coding, pages, folders and files. I can edit the html files such as gallery title, name, etc., in Dreamweaver CS6 just fine and preview them in a selected browser (both chrome and IE) and everything works fine.
    When I ftp upload the files and directories into my hosting account (Go Daddy), the images do not show up. The file table appears but the thumbs images does not appear and when selected to preview the larger image, it does not appear either. I have not altered the file structure at all. Go Daddy says it is a coding issue, but I cannot fine any errors.
    Have you seen this issue before? All Adobe help research have failed. Any suggestions??

    Have you asked on Go Daddy site for help in uploading Adobe Bridge script?  Just to say it is coding is not helpful. 

  • Adobe Cloud: coding auf unterster Ebene

    Ich bin jetzt 52 Jahre Alt und benutze Adobe Produkte in meinem Job und Alltag seit den Anfängen von Windows resp. Apple! Dies teils weil die Produkte gut waren oder meistens weil Adobe alles andere aufgekauft hat (siehe Makromedia)
    Ich kann behaupten dass Ich als Firmenchef, Designer, Grafiker und was noch Alles 1000de von Euro resp Dollar in den letzten 10-20 Jahren an Adobe abgedrückt habe (rechnet man die Firmen mit die Adobe alle inzwischen aufgekauft hatt)
    Ich hab jetzt ein Cloud Abbo auf meinen Namen laufen, mehrer Suits Nenn ich mein eigen und in dem Gymnasium wo Ich arbeite 100te von Adobe Lizensen eingeführt.
    Das was Adobe sich in letzter Zeit auf coding Ebene leistet, Hauptsächlich der "Adobe Application Manager" zeugt von einem Dilettantismus, einem Unvermögen Sauber zu programmieren wie es auf Ebene solch einer grossen Firma, Marketleader noch NIE gegeben hat!
    Ich habe die ganze Suite mehrmals komplett von meinem System genommen, das System läuft sauber und stabil. Sobald Ich die einzelnen Elemente "Photoshop, Dreamweaver usw über den Manager installiere crasht regelmässig mein System oder wird extrem langsam!
    Ich erinnere nur an den offenen Brief von Steve Jobs (nein, Ich bin kein Apple Jünger) an Adobe vor ein paar Jahren. Ich zahle eine Monatliche Gebühr und muss arbeiten um meine Familie zu ernähren, ADOBE!

    Ja, wissen wir doch. Schön, dass wir mal drüber gesprochen haben.
    Mylenium

  • How to get the table name in the trigger definition without hard coding.

    CREATE  TRIGGER db.mytablename
    AFTER UPDATE,INSERT
    AS
        INSERT INTO table1(col1)
        SELECT InsRec.col1   
        FROM
        INSERTED Ins
       --Below i am calling one sp for which i have to pass the table name
       EXEC myspname 'tablename'
      In the above trigger,presently i am hard coding the tablename
      but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table name

    I really liked your audit table concept.  You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields.  Wanted to share my end result.
    USE [YourDB]
    GO
    /****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
    ON [dbo].[YourTable]
    AFTER INSERT,DELETE,UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    Declare @v_AuditID bigint
    IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
    CREATE TABLE [dbo].[AutoAudit]
    ( [AuditID] bigint identity,
    [AuditDate] DateTime,
    [AuditUserName] varchar(128),
    [TableName] varchar(128) NULL,
    [OldContent] XML NULL,
    [NewContent] XML NULL
    ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
    PK_AutoAudit PRIMARY KEY CLUSTERED
    [AuditID]
    ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
    ( [TableName] ASC,
    [AuditDate] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    END
    Select * Into #AuditDeleted from deleted
    Select * Into #AuditInserted from inserted
    While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
    Begin
    INSERT INTO [dbo].[AutoAudit]
    ( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
    SELECT
    GETDATE(),
    SUSER_NAME(),
    [TableName]=object_name([parent_obj]),
    [OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
    [NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
    FROM sysobjects
    WHERE
    [xtype] = 'tr'
    and [name] = OBJECT_NAME(@@PROCID)
    Set @v_AuditID = SCOPE_IDENTITY()
    Delete from AutoAudit
    Where AuditID = @v_AuditID
    AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
    Delete top(1) from #AuditDeleted
    Delete top(1) from #AuditInserted
    End
    END

  • Error in Calendar.add (almost) evey last Monday of March

    Is the following a known bug? I am running under Windows 2000 and using
    C:\jdk1.4>java -version
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
    Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
    * Filename: CalendarBug.java
    * Every last Monday of March (except those with a whole week after it),
    * gives a wrong result when subtracting 24 hours with the Calendar.add function.
    * These specific dates give -25 hours...
    * Selected output:
    * Set date: Mon Mar 26 00:00:00 CEST 2001
    * -->Adjusted 24 hours: Sat Mar 24 23:00:00 CET 2001
    * Set date: Mon Mar 25 00:00:00 CET 2002
    * Adjusted 24 hours: Sun Mar 24 00:00:00 CET 2002
    * Set date: Mon Mar 31 00:00:00 CEST 2003
    * -->Adjusted 24 hours: Sat Mar 29 23:00:00 CET 2003
    * Set date: Mon Mar 29 00:00:00 CEST 2004
    * -->Adjusted 24 hours: Sat Mar 27 23:00:00 CET 2004
    * Does anyone care to explain?
    * The result is the same when substituting seedDate.add(Calendar.HOUR,-24) with
    * - seedDate.add(Calendar.HOUR_OF_DAY,-24)
    * - seedDate.add(Calendar.MINUTE, -24*60)
    * Date Created: 25. september 2003 09:53:20
    * Written by: Skjalg Bjorndal
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    public class CalendarBug {
        GregorianCalendar seedDate = new GregorianCalendar();
        public void lastMondayInMarch(int year, int month, int date) {
            System.out.println("   ------- Year: " + year + " ----------");
            for (int i = 0; i < 10; i++) {
                System.out.println("   ---------- " + i + " ----------");
                seedDate.set(year, month, date + i);
                seedDate.setTime(zeroTime(seedDate.getTime()));
                System.out.println("   Set date:          " + seedDate.getTime().toString());
                seedDate.add(Calendar.HOUR, -24);
                if (seedDate.get(Calendar.HOUR_OF_DAY) != 0) {
                    System.out.print("-->");
                } else {
                    System.out.print("   ");
                System.out.println("Adjusted 24 hours: " + seedDate.getTime().toString());
            System.out.println("");
        private Date zeroTime(Date date) {
            Calendar cal = Calendar.getInstance();
            cal.setTime(date);
            // Zero out time:
            cal.set(Calendar.HOUR_OF_DAY, 0);
            cal.set(Calendar.MINUTE, 0);
            cal.set(Calendar.SECOND, 0);
            cal.set(Calendar.MILLISECOND, 0);
            return cal.getTime();
        public static void main(String args[]) {
            CalendarBug aBug = new CalendarBug();
            aBug.lastMondayInMarch(2001, 2, 19);
            aBug.lastMondayInMarch(2002, 2, 18);     // OK - hole week after last Monday of month
            aBug.lastMondayInMarch(2003, 2, 24);
            aBug.lastMondayInMarch(2004, 2, 22);

    Thanks for both of your prompt replies!
    The number of hours to be subtracted is configurable in a property file in the program in which the problem arose. I.e. it could be 1, 23, 24, 120 or whatever...
    My solution will be to download 1.4.2, as kurisu1 pointed out would solve the problem.
    Until we tested the rest of the code with 1.4.2, I will reprogram and use the seedDate.add(Calendar.DATE, -1); as a temporary work around.
    Best regards
    __Skjalg

  • How to create sap directories in application server by coding.

    Hi Experts,
    Please tell me how to create a sap directory via coding in application server.
    Please tell me step by step n send the code also.I have tried alot using FM  'SXPG_COMMAND_EXECUTE' but i dont know how to use it n wht are d parameters i need to pass.
    Also, i found that we need to create a external command in SM69 to pass in this FM...i dont know how to create this.
    Please help me out.

    Hi friend,
    1. Goto to Transaction SM69.
    2. Click on F5.
    3. Click on F6.
    4. Enter a name in Command Name box          ex: z_com
    5. Enter a os command in Operating system command box.     ex: mkdir (creating a directory)
    6. Give location in application server in Parameters for operating system command box   ex: /C dir
    7. Click Save.
    Goto SE 38 and develop a report using FM 'SXPG_COMMAND_EXECUTE' .
    Ex:
    REPORT  zawi_demodownload                       .
    data: g_out like BTCXPM occurs 0,
            z_com type SXPGCOLIST-NAME  value 'mkdir'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                         = z_com
      TABLES
        exec_protocol                       = g_out
      EXCEPTIONS
       NO_PERMISSION                       = 1
       COMMAND_NOT_FOUND                   = 2
       PARAMETERS_TOO_LONG                 = 3
       SECURITY_RISK                       = 4
       WRONG_CHECK_CALL_INTERFACE          = 5
       PROGRAM_START_ERROR                 = 6
       PROGRAM_TERMINATION_ERROR           = 7
       X_ERROR                             = 8
       PARAMETER_EXPECTED                  = 9
       TOO_MANY_PARAMETERS                 = 10
       ILLEGAL_COMMAND                     = 11
       WRONG_ASYNCHRONOUS_PARAMETERS       = 12
       CANT_ENQ_TBTCO_ENTRY                = 13
       JOBCOUNT_GENERATION_ERROR           = 14
       OTHERS                              = 15.
    IF sy-subrc = 0.
    ENDIF.
    Thanks.......

  • Coding Confusion: Links linking to wrong...links

    Hi everyone,
    I'm writing some code in Flash MX 2004 and everything works fine except for the last button (4DSystemsProducts). According to the coding if none of the drop down buttons work it should go to products.php, but for some reason it goes to 4DSystemsProducts.php. All of the other menus are coded the same way and work fine, if I take out that button it works fine, or if I take out button 7 and switch 4DSystems to button 7 everything works.
    Here is the code to clear up this explanation.
    [CODE]
    function getActiveSub()
        if (_ymouse >= 38 && _ymouse < 58)
            return (activeButton.btnSub1);
        else if (_ymouse >= 58 && _ymouse < 78)
            return (activeButton.btnSub2);
        else if (_ymouse >= 78 && _ymouse < 98)
            return (activeButton.btnSub3);
        else if (_ymouse >= 98 && _ymouse < 118)
            return (activeButton.btnSub4);
        else if (_ymouse >= 118 && _ymouse < 138)
            return (activeButton.btnSub5);
        else if (_ymouse >= 138 && _ymouse < 158)
            return (activeButton.btnSub6);
        else if (_ymouse >= 158 && _ymouse < 178)
            return (activeButton.btnSub7);
        else if (_ymouse >= 178 && _ymouse < 198)
         return (activeButton.btnSub8);
        else
            return (null);
        } // end else if
    } // End of the function
    var activeButton;
    var activeSub;
    btnProducts.onRollOver = function ()
        btnProducts.gotoAndPlay("drop down");
        activeButton = btnProducts;
        activeSub = null;
    btnProducts.onRollOut = btnProducts.onReleaseOutside = function ()
        btnProducts.gotoAndPlay("drop up");
        activeButton = null;
        if (activeSub != null)
            activeSub.gotoAndPlay("stoparrow");
        } // end if
        activeSub = null;
    btnProducts.onRelease = function ()
        if (activeSub == btnProducts.btnSub1)
            getURL("products.php");
        else if (activeSub == btnProducts.btnSub2)
            getURL("newreleases.php");
        else if (activeSub == btnProducts.btnSub3)
            getURL("controlgrips.php");
        else if (activeSub == btnProducts.btnSub4)
            getURL("joysticks.php");
        else if (activeSub == btnProducts.btnSub5)
            getURL("controlboxes.php");
        else if (activeSub == btnProducts.btnSub6)
            getURL("electronics.php");
        else if (activeSub == btnProducts.btnSub7)
            getURL("accessories.php");
        else if (activeSub == btnProducts.btnSub8)
            getURL("4DSystemsProducts.php");
        else
            getURL("products.php");
        } // end else if
    [/CODE]

    That was just an exerpt.  I thought it would be all you need.  Here's the entire thing (attached).
    EDIT.  Apparently I can't attach the fla, just the swf.  Hope it helps.

  • Contact form-checkbox PHP coding doesnt work

    I am a beginner to web page design so i would be grateful if you can explain to me what PHP coding i would need for 'Checkbox' and where to place it in the PHP coding below. I can submit the form to my email with all the headings and the filled in forms with checkbox Yes or No.
    Only problem i have is that part of the check box info appear right at the top of the email message rather than the 'Name', 'Tel', 'Email' etc..Another half of the checkbox appear where it suppose to be wih double heading as shown below. I would also like to remove the <br> from the email message. Can you also tell me how to change the colour for heading so its clear.
    I have marked the checkbox code in BLUE for both HTML and PHP coding below. Sorry for the long coding. Look forward to hearing from someone. Much appreciated.
    Message delivered to the email address as received:
    Rear ground extension: Yes
    Two-storey rear extension: Yes
    Two-storey side extension: No
    Loft: Yes
    New Build: Yes
    Other: Yes
    Name: Test<br>
    Email: [email protected]<br>
    Contact No: 87576as<br>
    Address1: addy1<br>
    Address2: addy2<br>
    Town: town<br>
    County: county<br>
    Postcode: post<br>
    Property Type: Cottage<br>
    Property Area: None<br>
    Message:<br>
    test msg
    My HTML coding for the form:
    <div class="contactForm">
          <form id="form1" name="form1" method="post" action="test2.php">
            <fieldset>
              <legend><strong>Personal Information</strong></legend>
              <table width="690" border="0">
                <tr>
                  <td width="340"><p>
                <label for="name" class="contactLable">Name:</label>
                <input name="name" type="text" id="name" tabindex="10" size="30" />
              </p></td>
                  <td width="340"><p>
                <label for="contact_number" class="contactLable">Contact No:</label>
                <input name="contact_number" type="text" id="contact_number" tabindex="20" size="30" />
              </p></td>
                </tr>
              </table>
              <table width="690" border="0">
                <tr>
                  <td><p>
                <span id="sprytextfield1">
                <label for="email" class="contactLable">Email:</label>
                <input name="email" type="text" id="email" tabindex="30" size="30" />
              <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span> </p></td>
                </tr>
              </table>
            </fieldset>
            <fieldset>
              <legend><strong>Project Information</strong></legend>
              <p><table width="690" border="0">
      <tr>
        <td width="340"><p>
                <label for="address1" class="contactLable">Address 1:</label>
                <input name="address1" type="text" id="address1" tabindex="40" size="30" />
              </p></td>
        <td width="340"> <p>
                <label for="address2" class="contactLable">Address 2:</label>
                <input name="address2" type="text" id="address2" tabindex="50" size="30" />
              </p></td>
      </tr>
      <tr>
        <td><p>
                <label for="town" class="contactLable">Town:</label>
                <input name="town" type="text" id="town" tabindex="60" size="30" />
              </p></td>
        <td><p>
                <label for="county" class="contactLable">County:</label>
                <input name="county" type="text" id="county" tabindex="70" size="30" />
              </p></td>
      </tr>
      <tr>
        <td><p>
                <label for="postcode" class="contactLable">Post Code:</label>
                <input name="postcode" type="text" id="postcode" tabindex="80" size="10" />
              </p></td>
        <td> </td>
      </tr>
      <tr>
        <td><p>
                <label for="propertyType" class="contactLable">Property Type:</label>
                <select name="propertyType" id="propertyType" tabindex="90">
                  <option>Please select</option>
                  <option>Detached</option>
                  <option>Semi-Detached</option>
                  <option>End of Terrace</option>
                  <option>Mid-Terrace</option>
                  <option>Flat</option>
                  <option>Bungalow</option>
                  <option>Cottage</option>
                  <option>Other</option>
                </select>
              </p></td>
        <td><p>
                <label for="propertyArea" class="contactLable">Property Area:</label>
                <select name="propertyArea" id="propertyArea" tabindex="100">
                  <option>Please select</option>
                  <option>None</option>
                  <option>Listed Building</option>
                  <option>Conservation Area</option>
                </select>
              </p></td>
      </tr>
    </table>
    </p>
           </fieldset><fieldset><legend><strong>Project Type</strong></legend>
              <table width="690">
                <tr>
                  <td width="338"><label>
                    <input name="rearExt" type="checkbox" class="contactCheckbox" id="CheckboxGroup1_0" tabindex="110" value="rearExt"/>
                  Rear ground extension</label></td>
                  <td width="340"><input name="sideExt" type="checkbox" class="contactCheckbox" id="CheckboxGroup1_1" tabindex="120" value="sideExt"/>
    Side ground extension</td>
                </tr>
                <tr>
                  <td><input name="twoStoreyRear" type="checkbox" class="contactCheckbox" id="twoStoreyRear" tabindex="130" value="twoStoreyRear"/>
    Two-storey rear extension</td>
                  <td><input name="twoStoreySide" type="checkbox" class="contactCheckbox" id="twoStoreySide" tabindex="140" value="twoStoreySide"/>
    Two-storey side extension</td>
                </tr>
                <tr>
                  <td><input name="loft" type="checkbox" class="contactCheckbox" id="loft" tabindex="150" value="loft"/>
    Loft conversion </td>
                  <td><input name="newBuild" type="checkbox" class="contactCheckbox" id="newBuild" tabindex="160" value="newBuild"/>
    New build </td>
                </tr>
                <tr>
                  <td><input name="flat" type="checkbox" class="contactCheckbox" id="flat" tabindex="170" value="flat"/>
    Flat conversion</td>
                  <td><input name="other" type="checkbox" class="contactCheckbox" id="other" tabindex="180" value="other"/>
    Other conversion</td>
                </tr>
              </table>
            </fieldset>
            <fieldset><legend><strong>Message</strong></legend>
              <p>
                <label for="message" class="contactLable">Your Message or Comments:</label>
                <textarea name="message" id="message" cols="45" rows="5" tabindex="190"></textarea>
              </p>
            </fieldset>
            <br />
            <input type="submit" name="Sumbit" id="Sumbit" value="Submit" tabindex="200" />
          </form>
        </div>
    PHP Coding to send to my email:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $contact_number=addslashes($_POST['contact_number']);
      $email=addslashes($_POST['email']);
      $address1=addslashes($_POST['address1']);
      $address2=addslashes($_POST['address2']);
      $town=addslashes($_POST['town']);
      $county=addslashes($_POST['county']);
      $postcode=addslashes($_POST['postcode']);
      $propertyType=addslashes($_POST['propertyType']);
      $propertyArea=addslashes($_POST['propertyArea']);
      $rearExt=($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
      $sideExt=($_POST['sideExt'])?"Side ground extension: Yes":"Side ground extension: No";
      $twoStoreyRear=($_POST['twoStoreyRear'])?"Two-storey rear extension: Yes":"Two-storey rear extension: No";
      $twoStoreySide=($_POST['twoStoreySide'])?"Two-storey side extension: Yes":"Two-storey side extension: No";
      $loft=($_POST['loft'])?"Loft: Yes":"Loft: No";
      $newBuild=($_POST['newBuild'])?"New Build: Yes":"New Build: No";
      $flat=($_POST['flat'])?"Flat: Yes":"Flat: No";
      $other=($_POST['other'])?"Other: Yes":"Other: No";
      $msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n$newBuild\n$wflat\n$ other";
      $message=addslashes($_POST['message']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From Website Test";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Email: ".$email."<br>\n"
                ."Contact No: ".$contact_number."<br>\n"
                ."Address1: ".$address1."<br>\n"
                ."Address2: ".$address2."<br>\n"
                ."Town: ".$town."<br>\n"
                ."County: ".$county."<br>\n"
                ."Postcode: ".$postcode."<br>\n"
                ."Property Type: ".$propertyType."<br>\n"
                ."Property Area: ".$propertyArea."<br>\n"
                ."Rear ground extension: ".$rearExt."<br>\n"
                ."Side ground extension: ".$sideExt."<br>\n"
                ."Two-storey rear extension: ".$twoStoreyRear."<br>\n"
                ."Two-storey side extension: ".$twoStoreySide."<br>\n"
                ."Loft conversion: ".$loft."<br>\n"
                ."New build: ".$newBuild."<br>\n"
                ."Flat: ".$flat."<br>\n"
                ."Other: ".$other."<br>\n"
                ."Message:<br>\n"
                .$message;
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $msg, $headers);
        echo "Thanks for submitting your comments";
    ?>
    </body>
    </html>

    Dear David
    Thank you so much for the clear explanation. I have been using Lynda.com Dreamweaver CS5 tutorial. I found the coding for checkbox through search and added to the coding from Lynda.com tutorial.
    I made few changes to the coding by removing:
    $msg = "$rearExt<br>\r\n$sideExt<br>\r\n$twoStoreyRear<br>\r\n
              $twoStoreySide<br>\r\n$loft<br>\r\n$newBuild<br>\r\n$flat<br>\r\n$other\r\n";
    as the email message shows the results from the checkbox twice.
    I also removed the <br> from:
    $body = "Name: $name<br>\r\n
              Email: $email<br>\r\n
              Contact No: $contact_number<br>\r\n
             Other: $other\r\n
              Message:\r\n
                $message";
    I have add the result and the PHP coding you have helped to fixed for anyone needing a working PHP code containing Text Fields, Drop Down List, Checkbox and Text Area. Many thanks for all your help. If you have a coding to change the heading text colour I very much appericate it.
    Message sent to email:
              From: Name test <[email protected]>
                 Content-type: text/html; charset=iso-8859-1
    Name: Name test
              Email: [email protected]
                      Contact No: 0123456789
                      Address1: addy1
                      Address2: addy2
                      Town: T
                      County: C
                      Postcode: P/C
                      Property Type: End of Terrace
                      Property Area: Listed Building
                      Rear ground extension: Rear ground extension: No
                     Side ground extension: Side ground extension: No
                     Two-storey rear extension: Two-storey rear extension: Yes
                     Two-storey side extension: Two-storey side extension: No
                     Loft conversion: Loft conversion: No
                     New build: New Build: No
                     Flat: Flat: Yes
                     Other: Other: No
             Message:
               Test message
    PHP coding for customer contact page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $name=$_POST['name'];
      $contact_number=$_POST['contact_number'];
      $email=$_POST['email'];
      $address1=$_POST['address1'];
      $address2=$_POST['address2'];
      $town=$_POST['town'];
      $county=$_POST['county'];
      $postcode=$_POST['postcode'];
      $propertyType=$_POST['propertyType'];
      $propertyArea=$_POST['propertyArea'];
      $rearExt= isset($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
      $sideExt= isset($_POST['sideExt'])?"Side ground extension: Yes":"Side ground extension: No";
      $twoStoreyRear= isset($_POST['twoStoreyRear'])?"Two-storey rear extension: Yes":"Two-storey rear extension: No";
      $twoStoreySide= isset($_POST['twoStoreySide'])?"Two-storey side extension: Yes":"Two-storey side extension: No";
      $loft= isset($_POST['loft'])?"Loft conversion: Yes":"Loft conversion: No";
      $newBuild= isset($_POST['newBuild'])?"New Build: Yes":"New Build: No";
      $flat= isset($_POST['flat'])?"Flat: Yes":"Flat: No";
      $other= isset($_POST['other'])?"Other: Yes":"Other: No";
      $message=$_POST['message'];
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From Website Test";
      $headers = "MIME-Version: 1.0\r\n
                 From: $name <".$email.">\r\n
                 Content-type: text/html; charset=iso-8859-1";
      $body = "Name: $name\r\n
              Email: $email\r\n
              Contact No: $contact_number\r\n
              Address1: $address1\r\n
              Address2: $address2\r\n
              Town: $town\r\n
              County: $county\r\n
              Postcode: $postcode\r\n
              Property Type: $propertyType\r\n
              Property Area: $propertyArea\r\n
              Rear ground extension: $rearExt\r\n
              Side ground extension: $sideExt\r\n
              Two-storey rear extension: $twoStoreyRear\r\n
              Two-storey side extension: $twoStoreySide\r\n
              Loft conversion: $loft\r\n
              New build: $newBuild\r\n
              Flat: $flat\r\n
              Other: $other\r\n
              Message:\r\n
                $message";
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your message";
    ?>
    </body>
    </html>

  • Remote App from Ipad return "Failed to parse authorization Challange"

    Hi,
    I have set up a Remote App infrastructure on Windows 2012 server , I have publish some apps , I have publish my server on internet opening port 443 and 3389 for RDP with a public rapid SSL wildcard certificate  ... everything works on pcs but when I try
    to connect with my ipad from external I receive the error:
    "Failed to parse authorization Challange"
    with the following log:
    ===== DO NOT DELETE CONTENT BELOW THIS LINE =====
    [2014-May-06 12:03:11] RDP (0): Resolved 'apps.mydomain.com' to '195.206.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:03:11] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:03:11] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:03:11] RDP (0): Error message: The gateway failed to connect with the message: 404 Not Found(phase: 0, type: 0, reason: 0, systemCode: -1, systemMessage: )
    [2014-May-06 12:03:11] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2014-May-06 12:03:11] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:03:11] RDP (0): ------ END ACTIVE CONNECTION ------
    [2014-May-06 12:03:13] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-May-06 12:03:13] RDP (0): client version: 8.0.5.24403 on iPad3,6 (iPhone OS 7.1.1)
    [2014-May-06 12:03:13] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:03:13] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 77310DD3EA18B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 01C00DD3EA18B941;
        gatewayMode = 2;
        host = "SRVAPP.MYDOMAIN";
        label = AS400;
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||AS400";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            77310DD3EA18B941,
            84F1ABD3EA18B941,
            51A54AD4EA18B941,
            DF88EED4EA18B941,
            9E7D8DD5EA18B941,
            E1EB2BD6EA18B941,
            CA18C3D6EA18B941
        host = "apps.mydomain.com";
        id = 01C00DD3EA18B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:03:13] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:03:13] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:03:13] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:03:13] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:03:13] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:03:13] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:03:13] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:03:13] RDP (0): Not using any proxy
    [2014-May-06 12:03:13] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:03:13] RDP (0): Resolved 'SRVAPP.mydomain' to 'ERROR: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:03:13] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.(phase: 0, type: 0, reason: 0, systemCode: 0, systemMessage: )
    [2014-May-06 12:03:13] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:03:14] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 77310DD3EA18B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 01C00DD3EA18B941;
        gatewayMode = 2;
        gwAutodetectState = kConnectionGwAutodectedForceGW;
        host = "SRVAPP.mydomain";
        label = AS400;
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||AS400";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            77310DD3EA18B941,
            84F1ABD3EA18B941,
            51A54AD4EA18B941,
            DF88EED4EA18B941,
            9E7D8DD5EA18B941,
            E1EB2BD6EA18B941,
            CA18C3D6EA18B941
        host = "apps.mydomain.com";
        id = 01C00DD3EA18B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:03:14] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:03:14] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:03:14] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:03:14] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:03:14] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:03:14] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:03:14] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:03:14] RDP (0): Not using any proxy
    [2014-May-06 12:03:14] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:03:14] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:03:14] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:03:14] RDP (0): HTTP RPC_IN_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:03:14] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:03:14] RDP (0): HTTP RPC_OUT_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:03:14] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:03:16] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:03:16] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:03:16] RDP (0): Error message: The gateway failed to connect with the message: 404 Not Found(phase: 0, type: 0, reason: 0, systemCode: -1, systemMessage: )
    [2014-May-06 12:03:16] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2014-May-06 12:03:16] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:03:16] RDP (0): ------ END ACTIVE CONNECTION ------
    [2014-May-06 12:05:15] RDP (0): Application went into background
    [2014-May-06 12:26:21] RDP (0): Application became foreground application
    [2014-May-06 12:26:31] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-May-06 12:26:31] RDP (0): client version: 8.0.5.24403 on iPad3,6 (iPhone OS 7.1.1)
    [2014-May-06 12:26:31] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:26:31] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 9EB75556F018B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 01C00DD3EA18B941;
        gatewayMode = 2;
        host = "SRVAPP.MYDOMAIN";
        label = "CAPA_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||CAPA_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            77310DD3EA18B941,
            84F1ABD3EA18B941,
            51A54AD4EA18B941,
            DF88EED4EA18B941,
            9E7D8DD5EA18B941,
            E1EB2BD6EA18B941,
            CA18C3D6EA18B941,
            5F0AB755F018B941,
            9EB75556F018B941,
            57CCEC56F018B941
        host = "apps.mydomain.com";
        id = 01C00DD3EA18B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:26:31] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:26:31] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:26:31] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:26:31] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:26:31] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:26:31] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:26:31] RDP (0): Not using any proxy
    [2014-May-06 12:26:31] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:26:31] RDP (0): Resolved 'SRVAPP.MYDOMAIN' to 'ERROR: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:26:31] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.(phase: 0, type: 0, reason: 0, systemCode: 0, systemMessage: )
    [2014-May-06 12:26:31] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:26:31] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 9EB75556F018B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 01C00DD3EA18B941;
        gatewayMode = 2;
        gwAutodetectState = kConnectionGwAutodectedForceGW;
        host = "SRVAPP.MYDOMAIN";
        label = "CAPA_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||CAPA_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            77310DD3EA18B941,
            84F1ABD3EA18B941,
            51A54AD4EA18B941,
            DF88EED4EA18B941,
            9E7D8DD5EA18B941,
            E1EB2BD6EA18B941,
            CA18C3D6EA18B941,
            5F0AB755F018B941,
            9EB75556F018B941,
            57CCEC56F018B941,
            BFD38857F018B941
        host = "apps.mydomain.com";
        id = 01C00DD3EA18B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:26:31] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:26:31] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:26:31] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:26:31] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:26:31] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:26:31] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:26:31] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:26:31] RDP (0): Not using any proxy
    [2014-May-06 12:26:31] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:26:31] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:26:31] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:26:33] RDP (0): HTTP RPC_OUT_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:26:33] RDP (0): HTTP RPC_IN_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:26:33] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:26:33] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:26:33] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:26:33] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:26:33] RDP (0): Error message: The gateway failed to connect with the message: 404 Not Found(phase: 0, type: 0, reason: 0, systemCode: -1, systemMessage: )
    [2014-May-06 12:26:33] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2014-May-06 12:26:33] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:26:33] RDP (0): ------ END ACTIVE CONNECTION ------
    [2014-May-06 12:28:37] RDP (0): Application went into background
    [2014-May-06 12:34:23] RDP (0): Application became foreground application
    [2014-May-06 12:34:32] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-May-06 12:34:32] RDP (0): client version: 8.0.5.24403 on iPad3,6 (iPhone OS 7.1.1)
    [2014-May-06 12:34:32] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:34:32] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 31CE4F37F218B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 01C00DD3EA18B941;
        gatewayMode = 2;
        host = "SRVAPP.MYDOMAIN";
        label = "DifettiProduzione_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||DifettiProduzione_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            77310DD3EA18B941,
            84F1ABD3EA18B941,
            51A54AD4EA18B941,
            DF88EED4EA18B941,
            9E7D8DD5EA18B941,
            E1EB2BD6EA18B941,
            CA18C3D6EA18B941,
            5F0AB755F018B941,
            9EB75556F018B941,
            57CCEC56F018B941,
            BFD38857F018B941,
            F6424158F018B941,
            66C1EC58F018B941,
            83858B59F018B941,
            6EA42436F218B941,
            1CEEAB36F218B941,
            31CE4F37F218B941,
            F7B0DF37F218B941,
            3D436438F218B941
        host = "apps.mydomain.com";
        id = 01C00DD3EA18B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:34:32] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:34:32] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:34:32] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:34:32] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:34:32] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:34:32] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:34:32] RDP (0): Not using any proxy
    [2014-May-06 12:34:32] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:34:32] RDP (0): Resolved 'SRVAPP.MYDOMAIN' to 'ERROR: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:34:32] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.(phase: 0, type: 0, reason: 0, systemCode: 0, systemMessage: )
    [2014-May-06 12:34:32] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:34:32] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 31CE4F37F218B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 01C00DD3EA18B941;
        gatewayMode = 2;
        gwAutodetectState = kConnectionGwAutodectedForceGW;
        host = "SRVAPP.MYDOMAIN";
        label = "DifettiProduzione_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||DifettiProduzione_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            77310DD3EA18B941,
            84F1ABD3EA18B941,
            51A54AD4EA18B941,
            DF88EED4EA18B941,
            9E7D8DD5EA18B941,
            E1EB2BD6EA18B941,
            CA18C3D6EA18B941,
            5F0AB755F018B941,
            9EB75556F018B941,
            57CCEC56F018B941,
            BFD38857F018B941,
            F6424158F018B941,
            66C1EC58F018B941,
            83858B59F018B941,
            6EA42436F218B941,
            1CEEAB36F218B941,
            31CE4F37F218B941,
            F7B0DF37F218B941,
            3D436438F218B941,
            45F0EB38F218B941
        host = "apps.mydomain.com";
        id = 01C00DD3EA18B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:34:32] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:34:32] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:34:32] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:34:32] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:34:32] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:34:32] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:34:32] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:34:32] RDP (0): Not using any proxy
    [2014-May-06 12:34:32] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:34:32] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:34:32] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:34:35] RDP (0): HTTP RPC_IN_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:34:35] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:34:35] RDP (0): HTTP RPC_OUT_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:34:35] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:34:35] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:34:35] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:34:35] RDP (0): Error message: The gateway failed to connect with the message: 404 Not Found(phase: 0, type: 0, reason: 0, systemCode: -1, systemMessage: )
    [2014-May-06 12:34:35] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2014-May-06 12:34:35] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:34:35] RDP (0): ------ END ACTIVE CONNECTION ------
    [2014-May-06 12:35:28] RDP (0): Application went into background
    [2014-May-06 12:35:34] RDP (0): Application became foreground application
    [2014-May-06 12:35:45] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-May-06 12:35:45] RDP (0): client version: 8.0.5.24403 on iPad3,6 (iPhone OS 7.1.1)
    [2014-May-06 12:35:45] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:35:45] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 2C11E07DF218B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 8CDC4B79F218B941;
        gatewayMode = 2;
        host = "SRVAPP.MYDOMAIN";
        label = "DifettiProduzione_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||DifettiProduzione_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            30664B79F218B941,
            37A6A77CF218B941,
            EA3C467DF218B941,
            2C11E07DF218B941,
            EBE2767EF218B941,
            26E3887FF218B941,
            06F10D80F218B941,
            3EAE9580F218B941
        host = "apps.mydomain.com";
        id = 8CDC4B79F218B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:35:45] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:35:45] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:35:45] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:35:45] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:35:45] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:35:45] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:35:45] RDP (0): Not using any proxy
    [2014-May-06 12:35:45] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:35:45] RDP (0): Resolved 'SRVAPP.MYDOMAIN' to 'ERROR: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:35:45] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.(phase: 0, type: 0, reason: 0, systemCode: 0, systemMessage: )
    [2014-May-06 12:35:45] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:35:45] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 2C11E07DF218B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 8CDC4B79F218B941;
        gatewayMode = 2;
        gwAutodetectState = kConnectionGwAutodectedForceGW;
        host = "SRVAPP.MYDOMAIN";
        label = "DifettiProduzione_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||DifettiProduzione_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            30664B79F218B941,
            37A6A77CF218B941,
            EA3C467DF218B941,
            2C11E07DF218B941,
            EBE2767EF218B941,
            26E3887FF218B941,
            06F10D80F218B941,
            3EAE9580F218B941
        host = "apps.mydomain.com";
        id = 8CDC4B79F218B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:35:45] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:35:45] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:35:45] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:35:45] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:35:45] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:35:45] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:35:45] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:35:45] RDP (0): Not using any proxy
    [2014-May-06 12:35:45] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:35:45] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:35:45] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:35:46] RDP (0): HTTP RPC_IN_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:35:46] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:35:46] RDP (0): HTTP RPC_OUT_DATA connection redirected from https://apps.mydomain.com:443/rpc/rpcproxy.dll?localhost:3388 to https://apps.mydomain.com/RDWeb/rpc/rpcproxy.dll
    [2014-May-06 12:35:46] RDP (0): Resolved 'apps.mydomain.com' to '195.z.y.x' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:35:46] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:35:46] RDP (0): Exception caught: Exception in file '/Users/build/jenkins/workspace/rc-ios-develop/protocols/RDP/librdp/librdp/private/httpendpoint.cpp' at line 209
        User Message : The gateway failed to connect with the message: 404 Not Found
    [2014-May-06 12:35:46] RDP (0): Error message: The gateway failed to connect with the message: 404 Not Found(phase: 0, type: 0, reason: 0, systemCode: -1, systemMessage: )
    [2014-May-06 12:35:46] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2014-May-06 12:35:46] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:35:46] RDP (0): ------ END ACTIVE CONNECTION ------
    [2014-May-06 12:37:52] RDP (0): Application went into background
    [2014-May-06 12:38:25] RDP (0): Application became foreground application
    [2014-May-06 12:38:33] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-May-06 12:38:33] RDP (0): client version: 8.0.5.24403 on iPad3,6 (iPhone OS 7.1.1)
    [2014-May-06 12:38:33] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:38:34] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:38:34] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 75AFEF2AF318B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 8CDC4B79F218B941;
        gatewayMode = 2;
        host = "SRVAPP.MYDOMAIN";
        label = "DifettiProduzione_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||DifettiProduzione_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
        connections =     (
            30664B79F218B941,
            37A6A77CF218B941,
            EA3C467DF218B941,
            2C11E07DF218B941,
            EBE2767EF218B941,
            26E3887FF218B941,
            06F10D80F218B941,
            3EAE9580F218B941,
            7F340829F318B941,
            1BBDAE29F318B941,
            26A8452AF318B941,
            75AFEF2AF318B941
        host = "apps.mydomain.com";
        id = 8CDC4B79F218B941;
        port = 443;
        temporary = 1;
        type = rdp;
        kCFProxyTypeKey = kCFProxyTypeNone;
    [2014-May-06 12:38:34] RDP (0): --- BEGIN INTERFACE LIST ---
    [2014-May-06 12:38:34] RDP (0): lo0 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): lo0 af=30 (AF_INET6)  addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2014-May-06 12:38:34] RDP (0): lo0 af=2 (AF_INET)  addr=127.0.0.1 netmask=255.0.0.0
    [2014-May-06 12:38:34] RDP (0): lo0 af=30 (AF_INET6)  addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2014-May-06 12:38:34] RDP (0): pdp_ip0 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): pdp_ip0 af=2 (AF_INET)  addr=109.112.3.43 netmask=255.255.255.255
    [2014-May-06 12:38:34] RDP (0): pdp_ip1 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): pdp_ip2 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): pdp_ip3 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): ap1 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): en0 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): en2 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): awdl0 af=18  addr= netmask=
    [2014-May-06 12:38:34] RDP (0): --- END INTERFACE LIST ---
    [2014-May-06 12:38:34] RDP (0): Not using any proxy
    [2014-May-06 12:38:34] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2014-May-06 12:38:35] RDP (0): Resolved 'SRVAPP.MYDOMAIN' to 'ERROR: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.' using NameResolveMethod_Unknown(0)
    [2014-May-06 12:38:35] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.(phase: 0, type: 0, reason: 0, systemCode: 0, systemMessage: )
    [2014-May-06 12:38:35] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2014-May-06 12:38:35] RDP (0): Final rdp configuration used: {
        activeUsername = "COPAN\\ataglietti";
        arcTimeout = 1800;
        cacheId = 75AFEF2AF318B941;
        certificatesUseRedirectName = 1;
        configurationVersion = 8;
        font = 1;
        gatewayId = 8CDC4B79F218B941;
        gatewayMode = 2;
        gwAutodetectState = kConnectionGwAutodectedForceGW;
        host = "SRVAPP.MYDOMAIN";
        label = "DifettiProduzione_64bit";
        loadBalanceInfo = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection";
        mouseMode = "-1";
        port = 3389;
        remoteProgram = "||DifettiProduzione_64bit";
        remoteProgramArguments = "";
        remoteProgramRail = 1;
        temporary = 1;
        type = rdp;
        useAlt = 0;
        utilityBar = "-1";
        webFeedVersion = "Windows 2008 R2 or newer";
       THANKS FOR SUGGESTION

    Hi,
    Thank you for posting in Windows Server Forum.
    Please check that you have enable RD Web SSO and as you have buy RapidSSL wildcard certificate you need to see that certificate installed with its private key and also need to store the certificate under local computer personal store.
    In addition check the group policy whether you added server name in “Allow Delegating Default Credentials” under below path.
    Computer Configuration\Administrative Templates\System\Credentials Delegation
    Please check below articles for details.
    Remote Desktop Web Access single sign-on now easier to enable in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/06/25/remote-desktop-web-access-single-sign-on-now-easier-to-enable-in-windows-server-2012.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

Maybe you are looking for