How to communicate with a remote application that uses http post to the connection request

OK, I'll try to make this simple to avoid any

confusion.

I am getting requests for connection of remote applications on the user pc.

The application uses the POST method to send the request to connect to my database and possibly updating some tables.

The application is not a Web page. I don't have access to the internals of the application nor do I have any specific information on how it sends its MESSAGE. I'm sure of the following:

The application performs the VALIDATION on my .cfm page

"IsConnectionAllowed" = 'yes '.

Is ask my cfm page if its ok for you to connect. I would need to use a < cfif > to check the first part of the POST is in fact

"IsConnectionAllowed" = 'yes '.

If this returns true, (the application uses also at the STATION to spend 'username' and 'password') my .cfm page will then perform a query and check the user name and password on the database. If a matching record is found, the application waits for my page to answer with

"#Answer # OK - bound;

Once the answer is given the application will then respond with the data to insert or update my tables.

Now I know how to make queries and update the tables etc, but I never received a prior application data.

I tried using the < cfform > tag with a breeding to GET and then you're trying to send my response with < cfoutput >, but that did not work. The application gives no feedback or error messages. It connects or not.

I also tried the < cfhttp > tag, but that no longer works. I'm not very experinced with coldfusion. I used years ago and am just getting back to it.

I'm sure it's a fairly easy thing to do, but my methods do not work.

Using the information above, can somone please show me how I would accomplish this communication? I can then use the same method to retrieve the data for my queries and updates to the table.

Here is a sample of what I have already tried:

< cfform method = "get" >

< cfif >

"IsConnectionAllowed" = 'yes '.

<!-I need to ask a user name or password. But for testing I will just give the OK to connect->

< cfoutput > #Answer # Ok - connected; < / cfoutput >

< cfelse >

<!-when I ask user name and password, if the query returns no records I refuse the connection->

< cfoutput > #Answer # not connected; < / cfoutput >

< / cfif >

< / cfform >

BTW, I have some examples of this fact using .php and .asp. I need to do it using .cfm. I can post the .php or.asp code if it will be useful in the conversion of the function in a .cfm page.

Just as I speculated, you just send plain text - that is just like a normal web page generation.

The code below vaguely mimics your PHP code. I did not test it, so it may contain errors. I used labels instead of cfscript, because you might be working with ColdFusion 8 and not 9. I disable all outputs of coldfusion and wrap everything which is at the exit, between the two . This way without extra line breaks or spaces are never sent. syntax ed would of course take care of that, which I use more happy when working with CF9.



   
   
        ##Answer # error - could not connect to the mySQL database.
       
   


SELECT * FROM profil_utilisateur
WHERE UserName =
AND password =
   

   
   
        ##Answer # error - user name does not exist or wrong password;
       
   

##Answer # OK - connected;

What still intrigues me is; the client application makes separate connections to your server or not - first to check if the connection can be established and then to the name of user and password? Of course not, even if the first time he could. In your sample code, user name and password can be checked if isConnectionAllowed is displayed on the same application.

I guess that the application client messages these three areas (isConnectionAllowed, username, password) each time as it brings the following calls to update data in the query, because there is no no manipulation session implemented in PHP code.

I hope this helps. * shrug *.

--

-Fernis - fernis.net - developer ColdFusion for hire

Tags: ColdFusion

Similar Questions

  • How do I step manually in code that uses a structure of the event, when I want to select a particular event?

    I use an architecture of producer/consumer for an application with a structure of the event in the upper loop. Events are triggered by the user from the control panel using Boolean switches that are "change when you press on" and "release switch. My question is how can I manually step through the code using various events? It doesn't matter what I'm still not in the same event.

    Thank you.

    You can view the code? Is what event still enter? I did have problems step by step in code that uses a structure of the event. You must be patient, but because the application is slowed down a bit and it can take a while to get into the case of the specific event depending on what events you deal. Usually, I place a breakpoint in the case I am interested and run the application as usual. Once I hit the breakpoint is when I turn on highlighting of execution.

  • How bridge communicates with third-party applications?

    Hello

    Is it possible to communicate between Adobe Bridge and a third party request help SDK bridge?

    I want to learn how bridge can communicate with another application? SDK bridge have samples that explain how the bridge communicates with other applications such as Photoshop and Indesign Adobe. Can someone guide me or give me a sample where bridge communicates with a third-party application?

    Thank you.

    There is no direct access to the deck from a non Adobe application.

    If you need to access bridge, it must be done via another application such as Photoshop Adobe. THAT IS TO SAY: -.

    C# - Photoshop - bridge

    You must use BridgeTalk to send and receive messages between Photoshop and Bridge.

  • I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    1. Draw a set of concentric half circles also spaced, stacked so that the outermost is the most remote.
    2. Use the text tool to add text to the outermost path, thus creating a PathType object.
    3. Select all the paths. Type > threaded text > create.
    4. Text tool: click at the end of the text in the object of PathType. Continue typing.

    > If I do that it will not type more.

    A Warp effect is a direct effect. When it is applied to the type of objects, they are still editable text. The chain will deform, however, the text also, not only the paths to which it is attached. Sometimes you want that, sometimes you don't have.

    JET

  • HP workspace: is it possible to try HP work space with applications that uses my business?

    Hey everybody,

    Is there a way to try HP work space with applications that uses my business?

    Thank you

    Bill

    Yes, buyers of all bundle HP Elite x 3 on or before January 31, 2017 can enjoy a free 60 days HP Workspace Premium service launch promotion offer.5 which is more a $150 value per user! 6. contact your partner HP or HP account representative to activate the free promotional offer for 60 days.

  • How to communicate with the gsm using lab view

    Please, someone tell me about the following uncertainties:

    1 can anyone tell me about the GSM part in lab mode?

    2. how to communicate with the GSM using lab view?

    3. how to publish my data through GSM using lab view?

    4. how to use ipod to send data to laboratory?

    5. what a DAC suitable for ipod?

    6. how to install the lab for ipod DAC mode?

    without worrying

    FR. mohammad rehan

    rehan_the_great wrote:

    Can u please tell me the minimum requirement of computer (labtop) for the use of labview, like ram size, HARD drive, map chart etc...

    A simple search for "labview requirements" on this site would have given you the information you want.

    http://www.NI.com/LabVIEW/requirements/

  • How to set or keep a background image in my application at the beginning of the application that is, after clicking on the application icon.

    How to set or keep a background image in my application at the beginning of the application that is, after clicking on the application icon.

    I have developed a BB 7.0 BONE HTML5 / web app in which I want to include background image.

    Please guide me.

    Take a loot of rim: loadingScreen on config.xml http://developer.blackberry.com/html5/documentation/rim_loadingscreen_element_834680_11.html

  • How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    Mr President

    This is the page of the glassfish Server

    gfurl.png

    How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    webapplink.png

    In the jdev web module are

    [11: 09:38] wrote the Web for F:\backup of AshCMS\AshCMS\ViewController\deploy\AshCMS_ViewController_webapp.war application Module

    [11: 10:33] wrote the Module Enterprise Application to F:\backup of AshCMS\AshCMS\deploy\AshCMS_Project1_AshCMS.ear

    [11: 10:33] Application deployment...

    [11: 14:24] Application deployed successfully.

    [11: 14:24] time to deployment: 8 minutes, 11 seconds

    [11: 14:24]-deployment is complete.  ----

    what url in the browser.

    Concerning

    Mr President.

    I run my application on built-in web logic server and get the url from there

    http://localhost:7101 / ViewController/faces/MainPage

    then simply change the localhost of 7101 to 8081 as below

    http://localhost: 8081, ViewController, faces, MainPage

    and it works

    Concerning

  • Applications that use msxml do not load or use Windows 7 64-bit environment

    What happened several times. I have an installed application (Quickbooks pro 2010) that uses MSXML, and when I installed another application that uses MSXML, it fails to install, or install but does not work properly. (Both applications are supposed to be compatible with Windows 7)

    Is this a known issue?

    Hi Emanders,

    You receive an error message when you try to install or run programs?

    Who is the other program that fails to install or load?

    Access the link below and check if the programs are compatible with Windows 7 64 bit.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    However, you can try to unregister and reregister the MSXML.dll files on your computer and check if you can install and run programs.

    Run the command at the elevated command prompt, follow these steps:

    1. open the start menu, click programs principally made, select accessories.
    2. right click on command prompt, and then click "run as administrator".
    3. type the following commands in the DOS prompt window and press ENTER at the end
    of each line:

    REGSVR32 MSXML3. DLL/U
    REGSVR32 MSXML3. DLL
    REGSVR32 MSXML4. DLL/U
    REGSVR32 MSXML4. DLL
    REGSVR32 MSXML6. DLL/U
    REGSVR32 MSXML6. DLL

    (At the elevated command prompt command should not give us any error).

    You can also open the event viewer and check if there are other important messages/error codes that is generated during installation or execution of the program and after return.

    See the link below for more details:

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Create an application that uses BIS

    Hello, I'm new to this,

    NYW, my question is simple.

    I made an application that uses the Internet to view pages, to get the XML...

    When I tested it on a device, all seem to operate when the aircraft was on a wifi connection.

    But when the device using BIS or BES, this will not work!

    so can you please give me a sample code to see how I can be able to use BIS or BES.

    Sorry for my English.

    check these:

    http://supportforums.BlackBerry.com/T5/Java-development/different-ways-to-make-an-HTTP-or-socket-con...

    http://supportforums.BlackBerry.com/T5/Java-development/sample-HTTP-connection-code-and-bis-B-access...

  • Close applications that use ports 80, 443, 8000, 8002 and 8004

    Operating system: Windows 7 Professional

    I set up a test server that is demanding that I closed all applications that use ports 80, 443, 8000, 8002 and 8004, because these are required by the Test Server. I don't know how to do this. Any help would be greatly appreciated.

    Best,

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

  • Is there any application that searches all files on the disk or server which also indicates the total and available space?

    Is there any application that searches all files on the disk or server which also indicates the total and available space? And after a search, it can also be exported to excel for further analysis?

    Hello

    See if that helps you.

    This free program allows you to see what is taking place.

    http://www.Jam-software.com/treesize_free/

    Here's how to understand Treesize Screenshots:

    http://www.Jam-software.com/treesize_free/screenshots.shtml

  • Why is that every time I open an application that my phone disconnects from the wifi

    Everytime I open an application that my phone disconnects from the wifi.

    Here's a tip for the user on the problems of Wi - Fi. Suggest from the top and bottom. Maybe one of them will help you.

    (1) perform a forced reboot: hold the Home and Sleep/Wake buttons simultaneously for about 15-20 seconds, until the Apple logo appears. Leave the device to reboot.

    (2) resetting the network settings: settings > general > reset > reset network settings. Join the network again.

    (3) reboot router/Modem: unplug power for 2 minutes and reconnect. Update the Firmware on the router (support Web site of the manufacturer for a new FW check). Also try different bands (2.4 GHz and 5 GHz) and different bandwidths (recommended for 2.4 to 20 MHz bandwidth).

    (4) change of Google DNS: settings > Wi - Fi > click the network, delete all the numbers under DNS and enter 8.8.8.8 or otherwise 8.8.4.4

    (5) disable the prioritization of device on the router if this feature is available. Also turn off all apps to VPN and retest the Wi - Fi.

    (6) determine if other wireless network devices work well (other iOS devices, Mac, PC).

    (7) try the device on another network, i.e., neighbors, the public coffee house, etc.

    (8) backup and restore the device using iTunes (ask for more details if you wish).

    https://support.Apple.com/en-us/HT201252

    (9) go to the Apple Store for the evaluation of the material.

    Council: https://discussions.apple.com/docs/DOC-9892

  • Disable applications that use wifi?

    Y at - it app, or a quick way to break/disable applications that use the wifi on my MacBook Air OS10.11.4 running?
    In other words, is there something that I can use to Dropbox and Google Drive interrupt synchronization, the break of Carbonite and switch Outlook in offline mode? Note that I'm not talking about simply turn off the wifi. These applications continue to check for a wireless connection, even after the wifi is off, using energy unnecessarily.

    So I was wondering if there is some kind of a gadget that knows what applications are based on wifi and can put all pause or reactivate them all, instead of me having to remember and do each manually.

    Any ideas anyone?

    To be effective you must really be looking for anything that uses the network. The things you mention (Dropbox, Google Drive, Carbonite and Outlook) have no idea if you are on WiFi or not. They are simply looking for a network connection.

  • I lost this Firefox orange rectangular button that used to be in the upper left corner of my screen? How can I get that back?)

    I lost this Firefox orange rectangular button that used to be in the upper left corner of my screen? How can I get that back?)

    Most likely, you are showing the menu bar. Right-click on the toolbar area and uncheck the Menu bar - the Firefox button should appear. You can switch from one to the other.

Maybe you are looking for