How the URLRequest communicates with a server?

Hello

I use URLRequest in my desktop AIR application to handle server communications. I understand how to make it work, but I'm curious to know how it works under the hood - IE what etc. header information is sent?

I'm going to put in place a api to another developer contact my server using an application without Flash, and I have trouble understanding what it takes, as I'm used to having my first php script just search a variables of $_POST to treat - so I just give a list of what values of MESSAGE to send. But it needs more information to send data - this is what he asks...

URL including the type of order

headers

empty line

body (string json)

for example


https://www.mysite.com POST /api/account.php?command=login HTTP/1.1
Content-Type: application/json
Connection: close

{'pass': "superhardpass", "token": "","appID": 'myApp', 'user': "billClinton", "worm": "2.01", 'Coll ection_ID': '1'}

He asks me...

"what I need is a list of:

URL string

List of values of header you expect

chain of the body.

Which is usually sent by Flash?

Thank you guys

[Moved here Flash Pro forums]

Post edited by: sinious

Looks like it worked only with RESTful interfaces and does not remember when the world has mainly worked with GET and POST. RESTful interface also support PUT, DELETE, and I think that something else I'm forgetting at the moment. Mainly, just to learn about how basic work sends form/html and works since the 1990s, but here are a few things that would help, you and him talking to each other.

Flash isn't really able to use anything but GET and POST, so basically it looks like you just need to tell him 'POST' for the command type.

Flash cannot send headers, so those who are not applicable. If he wants to use a type of coding, it can send "multipart/form-data", although I do not think that the back-end care one way or another on this issue.

Tell him to send individual POST variables and that you do not look for JSON or something fancy like that.

If you do not try to take advantage of existing main code and want to meet at halfway point, a web search on RESTful web services in the language of your choice. But honestly it's basic stuff that he should have understood BEFORE he learned to call web services. You can also find the Dreamweaver forum can give you better answers on how to learn to write if that's what you want to do web services.

Tags: Dreamweaver

Similar Questions

  • How do you communicate with the Apple Watch

    How do you communicate with the Apple Watch

    Hello!

    Welcome to the Apple community. I'm not quite sure what you mean when you say "communicate" with the Apple Watch, so I'll give you a few options that can respond to your request.

    (1) the Apple Watch supports Siri, just like the iPhone and the Mac. To apply, simply say "Hey Siri" while the wrist is triggered, and your watch will respond. Alternatively, you can hold the digital Crown and Siri will be activated. As soon as Siri is activated, you can ask him questions such as "what is the weather today" or "reminder", or "Let's start a workout."

    (2) you can manually send SMS via your Apple Watch by use of Siri, or opening the messaging app. That Siri send your messages, just say 'Hey Siri, send a text < name >' and Siri will open the Messages app and wait to talk to you about your message. If you want to move the Messages app manually, press the digital Crown and will take you to the home screen. In the home screen, select the Messages app (a green icon with a word inside bubble). Any existing message log must appear, and you can type on a given message log and choose to respond.

    (3) If you want to place a phone call using your Apple Watch, you can say "Hey Siri, call < contact name >". If you have several numbers for a particular contact, Siri will ask you what number you want to call. You can also you can present a more specific request like 'Hey Siri, call < contact name >, < number >' with the number favorite is 'work' or 'House' or 'mobile' etc. So the demand go something like "Hey Siri, call Barbra, House".

    If you are still at a loss, with regard to the types of orders that Siri will accept, you can always ask. Say 'Hey Siri, what can you do?' and she will give you a list of commands that she will answer to the.

    If all goes well, I addressed your question. If not, please provide a little more information and I'll do what I can to help you.

    Good luck!

  • Anyone know how I can communicate with adobe pro support by phone first?

    Anyone know how I can communicate with adobe pro support by phone first?

    Start here: Customer Contact for Premiere Pro Service. This will help you go down through your particular situation.

  • Wireless AP do not communicate with Windows Server 2003 box on the cable network

    I have a wired network which has 2 PC under Windows 7, 1 PC Windows XP Pro, 2 LAN printers and a Windows Server 2003 as customers.

    The network through a switch and a router Comcast of class business.

    I am trying to add a wireless network access point and when I do the AP and the box of Windows Server 2003 are unable to speak / ping each other, even if strangelyboth of devices are able to communicate with all devices and clients on the network. These two will be just talk to each other. It doesn't matter if I use an access point or wireless router. Any wireless device attached with a cable of the switch won't talk on the server and vice versa.

    Laptop wireless connected to the AP take a DHCP of the router/modem Comcast address and can get on the internet, they just can't see the server as cable customers can. Any suggestion would be appreciated to grreatly.

    Thank you

    Greg

    Hello g_gauthier70,

    Your question of Windows Server is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please ask your question in the Technet Windows Server General category.
    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads
     
    Thank you

  • How can I communicate with an external application

    I develop a plugin for Premiere Pro and need to communicate with the server. Because the socket object is not supported in the body, I have to write an external application with C to communicate with the server.

    Is it possible that I can send or receive messages between jsx and the external application? Or y at - it another way to simply communicate with server with javascript API?

    It's a web page; You can use cookies.

    CEP_HTML_Test_Extension shows the use of cookies.

    Adobe-CEP/Samples · GitHub

  • How can I communicate with a multimeter clamp Extech 382065 using a serial connection?

    The unit works fine with the software provided.  My VI has worked with other materials in the series and I also tried the example series/VISA VIs in LabVIEW (v6.0.2 and v8.2).  I suspect that the code to request a reading will not (the manual says use space) or the unit may require identification.  The supplier and the manufacturer have been little help, just send me the operating manual.  I have set up the COM port with the recommended settings of RS232 (9600 baud, 8 bits of data, no parity, 1 stop bit) but got error 37 (device not found) in the series screw or framing error screws to Visa.

    Problem solved!  The manual seems unclear.  I read as being put in place for the material transfer protocol, but had, in fact, ignore the value, with lines DTR/DSR and RTS/CTS.  Definition of the RTS 'Unasserted' line has solved the problem.

  • 16-bit data base software does not communicate with NT4 server on the windows computer 7.

    We are a small manufacturing company. I installed old software database (16 bit) on windows 7 (64-bit) a year earlier. This software has worked for a few months and then it stop working. Database software still works on the old xp based computers, but it does not work on my windows 7. We believe that this database software is not communicating with our windows NT4 Server. It could be the update of windows 7, but we're not sure. I contact you because this database software is worked for two months on my computer and then suddenly stop working, it's strange, and now I am not able to install again. So is there someone who can suggest me what would be my next step.

    Windows 7 64-bit is not a 16-bit subsystem or a way to install the NTVDM extension that supports. You need to install a 32-bit version of Windows 7.

  • I can not install air adobe advised to contact the administrator how can I communicate with the administration?

    Contact the administrator

    cannot install adobe air advised to contact the administrator how to contact admiministrator

    It is also used in some software to the end user (as snakr RSS reader) and others)

  • How to use the creative cloud with a server

    I have a graphic team. We are working on videos, photos and graphics of all kinds. Now, everyone has remote on my Imac for work on projects. Which is quite problematic. I'm looking to build a server to store everything. I thought that everyone can work from there. An agent of chat adobe doesn't recommend. She felt I should work locally and upload to the server. That, however, becomes a waste of time when we are working on the video big say. Does anyone have any suggestions as to what I should do?

    I would like anything.

    The details depend on the program. Illustrator is quite sensitive when working directly on the servers, not so many other programs. The rest is too vague. A video server has different requirements from a simple file server in terms of performance, both on its network connection and storage, like the actual size of the team and the number of people accessing the server, the size of the files and so forth much important.

    Mylenium

  • How to get the files associated with a server module

    Hello

    I am facing a problem. I must extends controller, but there a lot of imports coming from the same module but the different folders. and all the files in the .class. files can you tell me where I can download all the files from the server on my local server system and process they are converted to java files. Can I also have the xml on my local system files.

    Please help me on this. are there any tools that can do this? Please share links.

    Thanks in advance.

    Kind regards
    Prakash

    Prakash

    It's better using the tools (for example (WINFTP or WINSCP) you copy the entire structure of package in your local machine. To decompling all files in an appointment that you can make use of JAD which is easily downloadable on the net.

    http://www.varaneckas.com/JAD

    I hope that helps!

    Thank you
    AJ

  • How ACS to communicate with DomainController in different domain controllers?

    Dear Sir

    Our company has 4 ACS, version 5.3, a primary school and three others are secondary.

    They are in the other domain controller, and I do not know which domain controller they communicate, how to check and how to configure ACS5.3 to communicate dedicated DomainController?

    Thank you

    Michael

    Michael,

    Can you try this and see how it goes:

    You can run the following command in the CLI of the ACS to the ACS
    configuration mode-

    ACS / admin # acs - config

    Escape character is CNTL/D.
    User name:
    Password:

    ACS/acsadmin(config-acs) # dns.dc ad-agent-configuration. .com distribution

    You may see a problem with the format of the command. I have not personally tested lately on ACS 5.3.

    Note # using this will force the ACS to authenticate using only this specific DC. If the domain controller
    becomes inaccessible, you must run this command to point the ACS to a different domain controller.

    In addition, this would require a reboot for the services.

    http://www.Cisco.com/c/en/us/TD/docs/net_mgmt/cisco_secure_access_contro...

    Open the TAC case if you are not comfortable running the above command.

    -Jousset

  • VM how can I run with 1 Server?

    Hello.

    I am fairly new to VMware and still much to learn. I bought a small sandbox with HA, ISCSI NAS and blablabla that works very well here (thanks to all who help me to understand by explaining patiently since I'm not English based)

    Now, my bosses want more meat on the BONE, sauce more. They asked: what concrete applications. What are the real cost to that.

    In order to give this answerm, I need to answer a few questions so I am currently looking for more information here. We have 40 employees and plans to move on the VMWARE VIEW COMPOSER of desktop images.

    A NAS with 7200 RPM is enough? (my guess is NO, but the accounting person prefer the price so... Please tell me I'm right

    Regarding the host server/Physics for all these 40 machines, what can I expect? I'm sure that each of them does not work on a single server then, what is the ratio of virtual machine by host can I expect. I tried to run through all of the documentation, and they are very evasive on this. They probably tell me on how economic it is and how much % of storage I'll record but no clear on this aspect, which I think is important. Example: Save a little on the storage but to triple on the treatment of material isn't a deal (know what I mean)! http://communities.VMware.com/message/1475742/ !!

    So if anyone be kind enough to share his experience with me about it, it is verry enjoy. I would like to have some examples of real life if possible to give me some advice on what to do and what not to do.

    Thank you

    I don't think that VMware will give recommendations like that because they don't have any idea what kind of use you encounter in your environment.   Each environment is different and requires a control and performance collection to build a good plan of action.  In our case we use machines to double hearts HP DL 385 with 32 GB of memory for our environment.   How to size your virtual machines in function, you should be able to handle 40 without problem.

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

  • How to talk / communicate with Microsoft about a problem? Phone, email address?

    It is the second time a Tuesday "updates" disabled my Internet, costing my $60.00 each time. The person tech disabled updates (TG) but I want to Microsoft for fees and the inconvenience they have caused.

    Hello

    You do not give your operating system; so this is for Vista but is easily adaptable to other operating systems.

    Do not disable the updates; find the problem.

    You do not have to install an update problem will continue to cause problems for you.

    Is there a way to get around that.

    Microsoft gives sometimes you updates for the 3rd party hardware: graphics, network cards, etc.

    You should only get the latest drivers for them to real hardware manufacturer's website, as Microsoft normally does nor those have the most recent drivers available as Microsoft relies of the 3rd party hardware Manufactuer to provide.

    But unfortunately, the only way to know which is the update of the problem is to install them one by one, until you find the 'wrong' for your installation.

    You can do a system restore to get back until it has been installed (which is NOT the best way to remove an update) or follow this method:

    'Remove an update'

    http://Windows.Microsoft.com/en-us/Windows-Vista/remove-an-update

    When you have found the issue of update of the list of updates which is presented > then right click on the update problem > select Hide update > and it will not be available to you once again

    "How to hide or show an update of Windows Vista"

    http://www.Vistax64.com/tutorials/72491-Windows-Update.html

     

    Here's how to chanage update settings, if you think it is necessary to:

    "Understanding Windows Update and Extras in Windows Vista and Windows 7.

    http://www.bleepingcomputer.com/tutorials/Windows-Vista-updates-and-extras/

    Or the other of these two update settings will give you the chance to see what you want to install through Windows updates;

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

    But remember you normally only have problems with hardware 3rd party drivers. Other updates are to improve the Performance and security of your system

    See you soon.

  • How can I print with terminal server with a printer that uses a user code or identification?

    Hello

    Anyone know who to print with the Terminal Server services with a printer that uses an authentication code?

    Some printers have the ability to Setup user accounts.  When printing with the Terminal services Server the printer displays "authentication failure".

    We have customers who use XP, VISTA and 7.

    The servers run Win2003R2, Win2008, Win2008R2.

    All the drivers for the printers are installed on the client & server.

    Thank you!

    Hi Mattttie,

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows 7 networking forum.

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

    I hope this helps!

  • How the elements tag with two tags?

    With the following function I can tag with bold and italic tags xml elements. The problem is, I also need '< b > < i >' for example. Now my question is, how is that possible?

    function tagStyles (myXmlElement) {}

    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = app.findChangeGrepOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    objectToTag = myXmlElement;

    italic conversion

    need to be developed for other styles

    attention to the problems of nested xml tags

    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.findWhat = '. '. + » ;

    app.findGrepPreferences.fontStyle = "italic";

    var myFindTexts = myXmlElement.findGrep ();

    If (myFindTexts.length > 0) {}

    for (var j = 0; j < myFindTexts.length; j ++) {}

    var myText = myFindTexts [j];

    var myStartIndex = myText.characters [0] .index;

    var = myText.characters [-1] .index myEndIndex;

    objectToTag = objectToTag.xmlElements.add ({markupTag: "i", xmlContent:myText});})

    myShift += 2;

    }

    }

    conversion "BOLD"

    need to be developed for other styles

    attention to the problems of nested xml tags

    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.findWhat = '. '. + » ;

    app.findGrepPreferences.fontStyle = "Bold";

    var myFindTexts = myXmlElement.findGrep ();

    If (myFindTexts.length > 0) {}

    for (var j = 0; j < myFindTexts.length; j ++) {}

    var myText = myFindTexts [j];

    var myStartIndex = myText.characters [0] .index;

    var = myText.characters [-1] .index myEndIndex;

    objectToTag = objectToTag.xmlElements.add ({markupTag: "b", xmlContent:myText});})

    }

    }

    bold italics conversion

    need to be developed for other styles

    attention to the problems of nested xml tags

    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.findWhat = '. '. + » ;

    app.findGrepPreferences.fontStyle = "Bold Italic";

    var myFindTexts = myXmlElement.findGrep ();

    If (myFindTexts.length > 0) {}

    for (var j = 0; j < myFindTexts.length; j ++) {}

    var myText = myFindTexts [j];

    var myStartIndex = myText.characters [0] .index;

    var = myText.characters [-1] .index myEndIndex;

    objectToTag = objectToTag.xmlElements.add ({markupTag: "b", xmlContent:myText});})

    }

    objectToTag = myXmlElement;

    for (var j = 0; j < myFindTexts.length; j ++) {}

    var myText = myFindTexts [j];

    var myStartIndex = myText.characters [0] .index;

    var = myText.characters [-1] .index myEndIndex;

    objectToTag = objectToTag.xmlElements.add ({markupTag: "i", xmlContent:myText});})

    }

    }

    }

    When there is an element with the "Bold Italic" style it looks like this: 'my element with < b > < /b > < i > "BOLD" and the italic text < /i > '. There it looks like this: ' my element with < b > < i > bold and italic < /i > < / b > text.

    Does anyone have an idea on this?

    Thanks in advance!

    Dear Stamm,

    Try this...

    objectToTag = objectToTag.xmlElements.add ({markupTag: "b", xmlContent:myText});})

    App.Select (objectToTag.texts);

    App.Selection [0] .associatedXMLElements [0].xmlElements.Add ("i", app.selection [0]);

    Kind regards

    Bala

Maybe you are looking for