We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11041
    • 82 Posts
    Firstly apologies,

    As I think I got the boards mixed up. When it read web development I thought this may have been the place to come.

    As fior the clarification, I would be all to happy to do this, but you would need to let me know where.

    When I mentioned the security aspect, it was a case of, that I dont want anyone to be able to simply come to the page and view source to reveal the action, eg action="http://api.domain.com/../..". I would prefer for this to appear as action="".

    Obviously if someone really wanted to get the info then they could, but to the random passer by who thought, "oh this is a nice tool to have ill borrow it" it would make it that bit harder for them.

    As for the XML and things, I think you may be getting a little confused, probably due to the way in which I had explained it. Basically when the url (in my first post), is placed in the browser and then actioned you see a page with xml on it.

    This is the output on the page

      <?xml version="1.0" encoding="ISO-8859-1" ?> 
    - <Results>
    - <Inputs>
    - <Phone>
      <Phone>014xxxxxx06</Phone> 
      <Error id="0">None</Error> 
      </Phone>
    - <Postcode>
      <Postcode>DxxxxxH</Postcode> 
      <Error id="0">None</Error> 
      <Eastings>478390</Eastings> 
      <Northings>382027</Northings> 
      <Latitude>53.3293636953953</Latitude> 
      <Longitude>-0.824420742214062</Longitude> 
      </Postcode>
    - <Address>
      <Subpremises /> 
      <Buildingnum /> 
      <Buildingname /> 
      <Street /> 
      <Town /> 
      <City /> 
      <Region /> 
      <Btaddress /> 
      <Error id="6">Address incomplete (Postcode and building required)</Error> 
      </Address>
      <Match>Yes</Match> 
      </Inputs>
    - <Exchange>
      <OLO>SLSTU</OLO> 
      <Name>Sturton Le Steeple</Name> 
      <Postcode>DN229HW</Postcode> 
      <Address1>CROSS STREET</Address1> 
      <Address2>STURTON LE STEEPLE</Address2> 
      <Address3>RETFORD NOTTI</Address3> 
      <Address4>NOTTINGHAMSHIRE</Address4> 
      <Eastings>478612</Eastings> 
      <Northings>384294</Northings> 
      <Longitude>-0.820526205297463</Longitude> 
      <Latitude>53.3497037613275</Latitude> 
    - <Prereg>
      <Prereg>147</Prereg> 
      <Trigger>300</Trigger> 
      <Duplicates>35</Duplicates> 
      <Triggerset>2003-11-17</Triggerset> 
      <Triggermet /> 
      <Rfsannounced>2004-06-30</Rfsannounced> 
      </Prereg>
      </Exchange>
    - <Checks>
    - <Check id="adsl">
      <Linecode>GGEC</Linecode> 
      <Linespeed>2048</Linespeed> 
      <Matched>Phone</Matched> 
      <Provider>BT ADSL</Provider> 
      <Type>BT xDSL</Type> 
      <Status id="2">Enabled</Status> 
      <Service id="4">Normal</Service> 
      <Enabledate>2005-05-25</Enabledate> 
      <Updated>2008-01-14</Updated> 
      <Error id="0">None</Error> 
      </Check>
    - <Check id="adslmax">
      <Linecode>Gxxxxxx</Linecode> 
      <Linespeed>4000</Linespeed> 
      <Matched>Phone</Matched> 
      <Provider>BT ADSL Max</Provider> 
      <Type>BT xDSL</Type> 
      <Status id="2">Enabled</Status> 
      <Service id="3">Normal</Service> 
      <Enabledate>2006-03-31</Enabledate> 
      <Updated>2008-01-14</Updated> 
      <Error id="0">None</Error> 
      </Check>
    - <Check id="bulldog">
      <Provider>Bulldog</Provider> 
      <Type>LLU</Type> 
      <Status id="1">Not enabled</Status> 
      <Service id="8">Normal</Service> 
      <Enabledate /> 
      <Updated>2006-03-03</Updated> 
      <Error id="0">None</Error> 
      </Check>
    - <Check id="be">
      <Provider>Be</Provider> 
      <Type>LLU</Type> 
      <Status id="1">Not enabled</Status> 
      <Service id="7">Normal</Service> 
      <Enabledate /> 
      <Updated>2007-04-10</Updated> 
      <Error id="0">None</Error> 
      </Check>
    - <Check id="easynet">
      <Provider>Easynet</Provider> 
      <Type>LLU</Type> 
      <Status id="1">Not enabled</Status> 
      <Service id="9">Normal</Service> 
      <Enabledate /> 
      <Updated>2008-01-07</Updated> 
      <Error id="0">None</Error> 
      </Check>
    - <Check id="homechoice">
      <Provider>Homechoice</Provider> 
      <Type>LLU</Type> 
      <Status id="1">Not enabled</Status> 
      <Service id="10">Normal</Service> 
      <Enabledate /> 
      <Updated>2006-05-15</Updated> 
      <Error id="0">None</Error> 
      </Check>
    - <Check id="wanadoo">
      <Provider>Wanadoo</Provider> 
      <Type>LLU</Type> 
      <Status id="1">Not enabled</Status> 
      <Service id="13">Normal</Service> 
      <Enabledate /> 
      <Updated>2007-11-04</Updated> 
      <Error id="0">None</Error> 
      </Check>
      </Checks>
      </Results>


    I have x’d out sensitive information obviously This would ideally be made to look like


    Does this help?
      • 25663 MODX Staff
      • 12,272 Posts
      That helps a lot. The response you show above though is not necessarily the way XML will render in every browser I don’t think. I’m not even sure if Safari (some versions won’t) will even submit a form with a blank action value.

      I’ll move this to the bounties topic and hopefully you’ll find some folks with some spare cycles. smiley


        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me