Authentication when pushing XML to a phone

I am attempting to create a small application that will push an xml page to a phone. I can do it with a simple ASP page and POSTing to http://ipaddress/CGI/Execute
However; when I execute the POST I am prompted for credentials. When I enter the credentials in my browser the POST works fine.
What I want to know is how can I include the credentials in the ASP page so I am not prompted? I have looked at the SDK and reviewed the samples but I don't know java to translate it into vbScript.
I am only looking for basic authentication.
Do I have to encode the username and password into base64?
If so is there a special key that has to be used in the encryption process?
Here is my asp code.
<html>
<head>POST to Phone at 10.10.10.36</head>
<body>
<P>
<!-- Need a form with an action that goes to the case-sensitive URL for the Phone you want to POST to. -->
<form action="http://10.10.10.36/CGI/Execute" method="POST" >
<!?There must be a form field that contains the xml data for the Phone action and it must be named XML case-sensitive. -->
<textarea COLS=60 ROWS=10 name="XML">
<CiscoIPPhoneExecute>
<ExecuteItem Priority="0" URL="Play:chime.raw" />
<ExecuteItem Priority="0" URL="http://10.10.10.201/alert.xml" />
</CiscoIPPhoneExecute>
</textarea>
</P>
<P>
<input type="submit" value="Push" />
</P>
</form>
</body>
</html>
Ultimately I want to put this in a desktop app so if anyone would like to share the process to post to a phone in .NET, it would be GREATLY appreciated.
Thanks in advance.

If your end goal is a desktop app, why not go for it directly, since it is rather simple. A quick google search yielded plenty of results that could be used as a template. For instance, this one: http://xmlgateway.its.utexas.edu/docs/c_sharp_ex_http.html
That one even does certificate authentication, but I'm sure you'll have an example with basic authentication a minute from browsing to google :)

Similar Messages

  • Unable to open the auth web of the ISE when pushing CA to Android phones

    Hi GUYS,
    I have got a problem when pushing CA to Android phones from Win 2008, i have already connected to my SSID and got the IP, then i open my browser and enter http://1.1.1.1, the web is redirected to the Device Self-regist like https://ip:port/guestportal/gateway?sessionId=SessionIdValue&action=nsp, however this website cannot be visited. my ACL in the WLC is correctly configured which has the access to my ISE like permit ip any host 10.10.10.70 and permit ip host 10.10.10.70 any. My authorization profile in ISE is configured as "Web authentication       supplicant provision      ACL    'my ACL'". Everything goes on for now is OK but the website of Device Self-regist cannot be visited.
    My ISE version is as belows:
    ise/admin# show version
    Cisco Application Deployment Engine OS Release: 2.0
    ADE-OS Build Version: 2.0.4.018
    ADE-OS System Architecture: i386
    Copyright (c) 2005-2011 by Cisco Systems, Inc.
    All rights reserved.
    Hostname: ise
    Version information of installed applications
    Cisco Identity Services Engine
    Version      : 1.1.3.124
    Build Date   : Thu Feb  7 06:55:38 2013
    Install Date : Thu Mar 28 05:22:23 2013   
    ise/admin#
    Can anyone help me with this? Thanks a lot!!!

    Hi guys,
    I have resolved this.
    My ise has been upgraded from version 1.1.1 to 1.1.3 several days ago. The URL in the 1.1.1 is like http://ise-111.demo.com/xxx while which in the 1.1.3 is like http://ise.demo.com, so i forgot to change the DNS resolution in my DNS server, and after that everything is OK now
    Sent from Cisco Technical Support Android App

  • Failed to push XML template when setup SMD Managed system

    Hi,
    when I setup a managed system in SMD, I receive the warning:
    XML Templates pushed : 0 successful, 1 failed
    Failed to push XML template to sv50761/TP4/10 (sv50761.RUV.DE) : com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad Attribute value(:main:, row:10, col:79)(cause=com.sap.engine.lib.xml.pars
    er.ParserException XMLParser: Bad Attribute value (:main:, row:10, col:79))
    (Data Collect may fail due to missing templates)
    Do you still want to proceed ? (Setup operations may fail due to warnings above)
    when I check the xml-templates, at the mentioned row, there's the database-information: it shows "9.00.3068#" (a binary value, instead of #)
    when I check the database in SMSY there's "9.00.3068#" in version as well, I can't change it there manually, because datasource is TMS/RFC.
    In SLD the Version vor the database is displayed correct: 9.00.3068 (without #).
    Where does the # occur & how to delete it? How can we setup managed systems without the warning?
    kr, achim

    Just came across this issue and this snote fixed it.
    Note 1156714 - Failure to push XML templates during Diagnostics Setup

  • I have an iPhone 3GS and it recently started to make a Cicada type of sound when pushing the close button on the top right hand of the phone. Can anybody give me feedback on what this is or how I might be able to fix it?

    I have an iPhone 3GS and it recently started to make a Cicada type of sound when pushing the close button on the top right hand of the phone. Can anybody give me feedback on what this is or how I might be able to fix it?

    It will be replaced with the exact same model. It is not expensive compared to the full retail price of a new phone (without carrier subsidies).
    If you're eligible for an upgrade from your carrier, now might be a good time to consider upgrading to an iPhone 5, though.

  • Can't get 2 exchange accounts, even when push is off?

    Is there no way to have 2 exchange accounts set up at the same time, even when push is off and I just check them manually?
    Why can't the phone simply check whichever account I choose when I open the mail app instead of limiting it to one account when there's no push involved?

    You can check email on two Exchange accounts, but you can't use ActiveSync functionality for two Exchange accounts. (There is a limit of one ActiveSync account on the device, and this is true of Windows Mobile as well.)
    At least one of the two Exchange accounts needs to be set up for IMAP or POP to do what you want and you can only check email on that IMAP or POP account (no calendar or contact sync).

  • Textfields iOS not updated when the XML allready is updated

    Hi,
    I am testing an app for iOS and later on also for Android. I am using an XML from PHP with and also without a MySQL database.
    In one case I only use the current date to be published in the app in a textfield. Problem is that to get all ML connected textfields updated even when the XML allready is updated I have to completely restart the iPod Touch which I use to test on. Is there a way that the user is able to push a button to manually update the app without closing down the device? In addition, is there away that the app automaticaly refreshes its content?
    Any help is greatly appreciated.

    Took me some time to find out why I didn't succeed.
    I finally succeeded in the way kglad suggested.
    Problem was that when you close the app and later on open it the information for example a date/time through php/xml doesnot change.
    That is untill you click something.
    So  my test with just the date didnot seem to change anything.
    But when I hit a button to another frame and send it back
    The date/time are updated.
    Thanks kglad for pointing me in the right direction.

  • Insane battery consumption when Push is activated

    Is there something wrong with my phone, or is the battery supposed to be drained REALLY fast when Push is activated?
    For some reason, the "Usage" counter will keep counting even though phone is not in use:
    Usage: 7 hours 51 minutes (was really only 3 minutes)
    Standby: 19 hours, 45 minutes.
    Battery left: About 40% (was 100%)
    The phone has laid untouched and locked (screen off) all the time, except maybe 3 minutes.
    3G is OFF
    Wifi is OFF
    Autolock: 1 minute
    Exchange Push is ON (less than 100KB of mails were received)
    I've had a phone with Exchange Push feature before (HTC), and battery consumption was not anything near this...
    When i turn off push, battery is just fine, and usage counter is correct.

    For what it's worth, I have this same problem with MobileMe account....reloading settings does not fix that and I set my phone up from the ground up first time round.
    PUSH OFF = reasonable battery useage, even with all the other battery draining features on
    PUSH ON = loads of usage, even with phone unattended and battery that needs charging every 24hrs at least.

  • Window for Form-Based Authentication in web.xml for JAZN.

    Whether probably to make so that the form-authorization in Form-Based Authentication in web.xml for JAZN opened in a separate window?
    Thanks,
    Alexandre

    this is what i have so far...in my web.xml deployment descriptor
    am using Jbuilder 6 with tomcat.....if i run it from IDE, will the featuresi have added to the web.xml file...eg Error page be used ...or only when i deplo the app ???
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>Java Pet Store</display-name>
    <description>Web Application for Reseach</description>
    <session-config>
    <session-timeout>54</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>Default.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>500</error-code>
    <location>/</location>
    </error-page>
    <taglib>
    <taglib-uri>PetStoreTagLib</taglib-uri>
    <taglib-location>/WEB-INF/PetStoreTagLib.tld</taglib-location>
    </taglib>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>SecurePages</web-resource-name>
    <url-pattern>Checkout.jsp</url-pattern>
    <url-pattern>OrderList.jsp</url-pattern>
    <url-pattern>OrderDetails.jsp</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>LoggedInUser</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/Login.jsp</form-login-page>
    <form-error-page>/ErrorPage.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <description>Logged In User</description>
    <role-name>LoggedInUser</role-name>
    </security-role>
    </web-app>
    in setting up the tomcat-users.xml file am i to add table to my database, to relate the user to the role.......

  • Hello I send imessages to a phone number I receive delivery notice but sms does not show on receiving phone. Otherwise when receive imessage from other phone I reply and receiver sees SMS !!! Any explanation ?

    Hello I send imessages to a phone number I receive delivery notice but sms does not show on receiving phone. Otherwise when receive imessage from other phone I reply and receiver sees SMS !!! Any explanation ?

    To my knowledge, I've only seen this for imessage only and not SMS.
    The other users would need to have send read receipts enabled on their phone.

  • When on the internet, my phone will not let me call the number i choose.

    When on the internet, my phone will not let me call the number i choose.

    If you have a 1G iPod then you are in the same boat of other 1G users, It appears that Apple changed the App store and the update prevent 1G users from purchasing items. I have not seen a solution yet.

  • When I was talking on phone, suddenly the phone was switched off. i tried to switch it on but it gave the message....connect to itunes for set up.  when I connected it to itunes...it gave the message, itunes can not read data from this iphone, restore it

    when I was talking on phone, suddenly the phone was switched off.
    i tried to switch it on but it gave the message....connect to itunes for set up.
    when I connected it to itunes...it gave the message, itunes can not read data from this iphone, restore it to factory settings. It also said while restoring ypu will lose all media data but you can restore the contacts.
    I restored the factory settings....the phone was on recovery mode...it was verified by itunes and all that..but in the end it again said that iphone has some problem and can not function right now.
    after that when ever i connect it with itunes, it gives the message, it can not activate the iphone further, try again later or contact customer service.
    What to do now?????? Customer service people say..it is hardware problem

    If it's a hardware problem, then the phone will need to be replaced.
    There is no magic that can fix a hardware problem.

  • When I am on a phone call and I double click the button to go to my home screen, then open another application (usually my calendar program, Calengoo), my screen goes blank and I am not able to return to either the app, the phone, or the home screen.

    When I am on a phone call and I double click the button to go to my home screen, then open another application (usually my calendar program, Calengoo), my screen goes blank and I am not able to return to either the app, the phone, or the home screen. If I am speaking to a person, if they hang up then I am back to the phone application. If I'm leaving a message, I am unable to return to the phone screen to end the call, and have to wait until the other phone hangs up. I'm also unable to switch back and forth to look at my calendar if I'm calling someone about scheduling. This has only started happening since the most recent iOs update. I run into situations similar to this about once per day during the work week, as I use my phone is this manner quite often. While not life altering it is quite frustrating. Can anyone here help me figure out a way to avoid this? If it helps, I have noticed a general downgrade in overall performance starting two system updates ago (apps opening more slowly, closing unexpectedly more often, etc.). I have an iPhone 3GS with the latest OS update.
    Thank you for any help or suggestions,
    Chris

    I could be corrupted backup.
    You can check the notification settings for message.
    Settings>Notification Center>Messages>Alert Style
    It should be on Banners or Alerts.
    Settings>Messages> Turn on Imessage and send as SMS and below that "Blocked" to check if you have any numbers block might be blocking the message.
    You can also do a hard reset by holding power and home till it restarts and release after seeing the apple logo.
    Still doesn't work? Settings>General>Reset>Reset all settings

  • HT201269 I used iTunes to backup up my iPhone 4 version 7.0.6 bought a new iPhone 5 and when I connect the new phone I get "iTunes could not connect to this iPhone. You do not have permission."  How do I fix this issue?

    Itunes 11.1.5
    Mac OS X 10.7.5
    IPhone 4 7.0.6
    IPhone 5 7.0.6
    Ikeep getting this error when I attach the new phone.  After it would not work I did a Icloud back up of my old phone and restored it on the new phone, but I have other music and apps on my Itunes that I would like the option to sync and I like to be able to backup my phone on my Mac.  What do I need to do to get the new phone attached back to this itunes?
    iTunes could not connect to this iPhone. You do not have permission.

    Im having the same problem after installing ios7.1
    Checked the usb status and it sees an iphone ( 4s ) attached,
    Repaired disc permissions
    updated and reset iphone
    and itunes
    reinstalled mavericks from scratch
    phone alert saying " TRUST THIS COMPUTER?"
    hit trust
    same alert keeps appearing
    again and again
    itunes keeps wittling on about "iTunes could not connect to this iPhone. You do not have permission."
    what the actual F*** is going on and can anybody help ??????

  • After upgrading iPad 2 to iOS 7 , cannot open new tabs in safari . When pushing on " " , Safari close the application .

    After upgrading iPad 2 to iOS 7 , cannot open new tabs in safari . When pushing on " " , Safari close the application .

    Try a Restart. 
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider. Press and hold the Sleep/Wake button until the Apple logo appears.
     Resetting your settings
    You can also try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. You won't lose any data, but it takes time to enter all of the settings again.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears. Apple recommends this only if you are unable to restart it.
    Or if this doesn't work and nobody else on the blog doesn't have a better idea you can contact Apple. 
    Here is a link to their contacts with most of the information below. 
    http://www.apple.com/contact/

  • After upgrading to mountain lion e-mail no longer pushes to my i-Phone

    after upgrading to mountain lion e-mail no longer pushes to my i-Phone I have to launch the mail app on phone to retrieve mail now

    The OS on your Mac has nothing to do with behavior of email on your iPhone. The only thing I can imagine is that Mail on your Mac may be receiving messages and marking them as "read" before your iPhone has a chance to receive them. What kind of email account are you talking about here!

Maybe you are looking for

  • How to use two agents in one scene?

    Hi experts, I have two agents: First Agent: Unix Second Agent: Windows. I would like: Steps In the scene: 1) Load file in the oracle table (LKM --> File to oracle) --> agent linux 2) Load Table in BAM (LKM --> oracle to BAM) --> agent windows I would

  • Implement Oracle Aplication Server Portal - Starting work

    Hi everyone I work with java and Oracle database, manager oracle application server, but i need to learn Oracle Aplication Server Portal, i just to know some tips to start. How can i do that? Thanks José Vieira

  • HELP. Screen seems to start flicker when watching move/playing games?

    Hello there. I could really use some help. Im having this problem that my screen freezes and start flimmering. I have some idea's of what can be trickering it. Because it happens when i watch movies or trying to play games. It looks like this: https:

  • Compressing video for vimeo from final cut

    Hi, I have 13.8 gb of video that I would like to compress so I may put it on vimeo which has a max of 5000kb. How can I compress all this video so it can be uploaded. thanks

  • To find code given exit

    Hi I have the FM name EXIT_SAPLCK36_001, the enhancement is COPCP002.  can anyone tell me how to find the relevant TCode for this exit.  The where-used list isnt much helpful. Thanks for ur reply, Points will be awarded