How to download an animated .gif from a web page

how do i download to my mac an animated gif that is on a web page....when i want a picture or text or something like that i just ...apple shift 4 and "take a picture of it" ...but i want the animation..i have never had to do that on this mac.....a windoze person from the site(chat site) said just right click but my wireless mac mouse doesnt do that....i would appreciate any help.....i do know how to down load from a site that has downloadable .gifs...you just click the download sign they have and no problem....but this is just a random animated .gif from a web page ....i hope my ques is clear....thank you

Drag and drop it from the webpage onto your desktop. Note that it won't remain "animated" while you're looking at the file's icon, but it should work if you build it into a new website.
And you can right-click with a Mac mouse - you just have to set it up to do so in System Preferences. (Set the right side of the mouse to be a "secondary click".)
Matt

Similar Messages

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • How to open a java application from a web page?

    Friends
    I am in a situation to open a java application from a web page. I wrote a applet and placed a button on it. Onclicking of that button i con't open my java application. plz help me to open a userdefined application from web page.
    Ramesh
    e-Brahma technologies

    http://java.sun.com/products/javawebstart/index.jsp

  • How do I stop playing animated GIF's within web pages?

    Various websites display numerous images available for download. Some of those images are animated GIF files. These files take time to load and chew up a lot of my limited upload/download usage. IE Explorer let me see a single image for the GIF but doesn't load or play the GIF. How do I get that same setting in Mozilla Fire Fox?

    hello vyoumans,
    i found a couple different ways this can be done.
    1. this firefox addon, [https://addons.mozilla.org/en-US/firefox/addon/toggle-animated-gifs/ Toggle animated GIFs], seems to work pretty good. ctrl+m toggles the animations on and off.
    2. if you don't want to install an addon, you can go to your browser configuration file. type ''about:config'' in the address bar and find the entry ''image.animation_mode''. double click it and set its value to ''none''. this should disable all GIF animations

  • I downloaded latest versionof Firefox from Mozilla web page, I rebooted my computer. The update did not take effect. How make late version active ?

    My present version of Firfox is 3.5.15
    My Op. System is Linux Fedora version 12.
    Two days ago when I opened a file in a web search for Mercury Scientific Thermometers, the web page for NovaTech International-USA opened.
    Centered in the middle of the page was a screen message reading
    "Error: form not found." There's an X in the upper right corner of this small screen. There's an "OK" within the screen. Clicking on either of those optons does nto close the small screen. AND, clicking on any Menu
    choice at the top of the main screen produces no action. File Edit View History Bookmarks tools Help are all unresponsive. The screen is
    locked to the Cursor and Clicking any menu item. Tho' there are many choices on the Screen for various types of thermometers no choice responds to a click.
    I closed down the computer. ThenI did a Cold Boot. There was no
    change in the situation described above. The screen appeared again if
    I chose to open Firefox.
    I use 8 virutal screens. By which I mean I can have 8 screens open at a time. All 7 of my other available screens are perfectly active and perfectly normal in their behavior.
    Rebooting changes nothing---the unwanted frozen/locked screen appears again if I attempt to open Firefox.
    I opened the Firefox website. I soon found how to download the latest version of Firefox. But I used YUM to download it. Here is an excerpt of the Yum process:
    [William@WilliamsComputer ~]$ su
    Password:
    [root@WilliamsComputer William]# yum install firefox
    Loaded plugins: presto, refresh-packagekit
    adobe-linux-i386 | 951 B 00:00
    updates/metalink | 2.8 kB 00:00
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package firefox.i686 0:3.5.15-1.fc12 set to be updated
    --> Processing Dependency: xulrunner >= 1.9.1.15 for package: firefox-3.5.15-1.fc12.i686
    --> Running transaction check
    ---> Package xulrunner.i686 0:1.9.1.15-1.fc12 set to be updated
    --> Finished Dependency Resolution
    Skipping here much of the YUM processing.
    Note the finishing YUM statement:
    Dependency Updated:
    xulrunner.i686 0:1.9.1.15-1.fc12 Complete!
    [root@WilliamsComputer William]# exit
    [William@WilliamsComputer ~]$
    I did a cold reboot of my computer.
    In the Downloads Folder The Firefox update appeared.
    But when I opened a Firefox page and clicked Help-About Firefox
    the version of Firefox was still 3.5.15 AND the unwanted, Locked,
    Frozen Novatech-International---USA Screen was still present and still
    locked.
    Please teach me the preferred way to Update Firefox and once the Updates have been downloaded, how do I activate those updates?
    Many, many thanks,
    William
    Florida

    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • How to stop my animated Gif from looping?

    So I'm making my Gif in flash. When I export my video as a Gif I select the option to only repeat once but the Gif just keeps looping. I also have transparent selected and dithering unselected, but neither seem to be working.

    I had this same problem. I was exporting around 10 gif banners for a campaign, but the glitch only affected a few.
    I wish I had a more airtight solution, but I eventually fixed the problem for each of the effected banners by "jiggling the keys" a bit- that is to say restarting Ps, deleting the animation and starting again, and even deleting the entire PSD and starting from scratch. Was a real nuisance and set me back a good couple hours, but still got those gifs to stop looping.
    Using Mac and Adobe CC.

  • How can i collect  email addresses from my web page viewers

    I would like to set up a way that if my website viewers are interested (volunterily), they can submit me their email addresses or phone numbers for further contact.
    How do I do this in iweb?
    thanks

    Welcome to the Apple Discussions. You can use a Wufoo form like Alancito suggested or create your own link on this demo page: Form Action comment form.
    The Form Action type of form uses the visitors email client to send the information to you. With Wufoo it's done from Wufoo. Wufoo does have a limit to the number of responses you get for free.
    OT

  • Why can I not download something from a web page?

    This is probably a stupid question, but I am totally new to this.
    This probably is not the appropriate place to ask, but is there a way to download a .exe that I need for a clients laptop (in the field) onto my iphone and then USB it to the laptop? I'm pretty sure about the USB part, but I was told by AT&T today that the iphone will not download programs like that from a web page. I do not want to run them on the iphone, just transfer them to a PC.
    Maybe I should return the phone.
    Thanks, your help is very much appreciated.
    David.

    The iPhone doesn't allow downloading of stuff (except saving of Pictures). It also doesn't allow you to take stuff off via the USB...there is no disk access to the phone, it is not a thumb drive. It is a closed and protected file system that requires iTunes to sync stuff to or remove...sorry.

  • Meta data information from dynamic web page

    Dear all,
    for website searching, we should put the meta data in every page, in my case
    i have to get the data from dynamic page(data are coming from database).
    So, how can i meta data information from dynamic web page
    kindly suggest.
    thanx,
    R. Ramasubramanaim.

    Build your web application with BSP, that's all I can say...

  • How do I export an animated GIF from Premiere CC?

    How do I export an animated GIF from Premiere CC?
    I dont see an Animated codec option

    Hi Nick
    Believe me I STARTED there.
    I wouldnt post this message if I didnt try there first.
    I do not see Animated GIF as a codec option.
    Please walk me through the step by step process of how you got this.
    Because it is not as obvious as you're making it out to be.
    Further more perhaps a certain format has to be selected for Animated GIF options to appear?
    YES I AM ON CC version too. thanks!

  • Problem to display Animated Gif from HTML into JEditorPane

    I have a problem displaying animated gif that comes from URL (HTML) into JEditorPane.
    Let me show you the source I have:
    * @author Dobromir Gospodinov
    * @version 1.0
    * Date: Dec 6, 2002
    * Time: 6:47:53 PM
    package test.advertserver;
    import javax.swing.*;
    import java.awt.*;
    import java.io.IOException;
    public class Test {
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              JEditorPane ed = new JEditorPane();
              try {
                   ed.setPage("http://localhost:8200/servlet?key=value");
              } catch (IOException e) {
                   e.printStackTrace();
              JPanel panel = new JPanel();
              panel.setPreferredSize(new Dimension(500, 500));
              panel.add(ed);
              frame.getContentPane().add(panel);
              frame.pack();
              frame.setVisible(true);
    }Part of the returned from servlet HTML includes an img tag:
    <img src="/images/MyAnimatedGif.gif" alt="animated gif comment" width="480" height="50"  border="0">Let us assume that MyAnimatedGif.gif has 10 frames and gif is looped - when the 10th is dipslayed it has to display the 1st and so on.
    JEditorPane displays frames from 1 to 10 correctly but does not start from the first again. Instead JEditorPane displays a broken image.
    I locate where the problem arise:
    JEditorPane has an HTMLEditorKit that creates javax.swing.text.html.ImageView instance for every IMG tag.
    And here is the problem:
    ImageView has an ImageObserver necessary for the asynchronous image download. ImageObserver has the imageUpdate method. But this imageUpdate method is never called with ALLBITS flag raised up. Instead, after the last frame of MyAnimatedGif.gif is downloaded the imageUpdate method is called with flag ERROR raised up. Obviously this is a bug of Sun's implementation. Finaly the flag ALLBITS has to be received for normal end of image observing. But ALLBITS flag does not come.
    So, can anybody help me how to load an animated gif within JEditorPane completely.
    Thank You in advance,
    Dobromir Gospodinov
    P.S. If somebody of you wants to debbug what happens within ImageView will have to implement it (and related classes too, because of the limited package visability) borrowing the source from Sun's ImageView.

    I'm also having this problem with java 1.4.1 I discovered that some animated gifs work fine, while others stop animating. Running with java 1.3.1 fixed the problem. I'm going to report this as a bug
    Here's my code:
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    public class AnimatedGifTester
    extends JFrame
    public static void main(String argv[])
    throws Exception
    new AnimatedGifTester();
    public AnimatedGifTester()
    throws Exception
    String[] images = new String[] {
    "http://www.gif.com/ImageGallery/Animated/Animals/Photographic/dog_running.gif",
    "http://www.gif.com/ImageGallery/Animated/Characters/Cartoon/java.gif",
    "http://www.webdeveloper.com/animations/bnifiles/anielg.gif",
    "http://www.webdeveloper.com/animations/bnifiles/cat2.gif",
    "http://images.animfactory.com/animations/animals/fish/big_fish_swimming_md_wht.gif",
    "http://www.webgenies.co.uk/images/martian.gif",
    "http://www.webdeveloper.com/animations/bnifiles/at_sign_rotating.gif",
    "http://www.webdeveloper.com/animations/bnifiles/arrow_1.gif",
    "http://www.gif.com/ImageGallery/Animated/Characters/Cartoon/javaacro.gif",
    "http://java.sun.com/products/java-media/2D/samples/suite/Image/duke.running.gif",
    "http://www.gif.com/ImageGallery/Animated/SouthPark/Cartoon/stan.gif"
    StringBuffer buffer = new StringBuffer("<html><body>");
    for (int idx = 0; idx < images.length; idx++)
    buffer.append("<img src='" + images[idx] + "'>");
    buffer.append("</body></html>");
    String html = buffer.toString();
    // save a copy of the html to open in a browser so we can see what it's
    // supposed to look like
    BufferedWriter writer = new BufferedWriter(new FileWriter("animatedGifTest.html"));
    writer.write(html);
    writer.close();
    JEditorPane editorPane = new JEditorPane("text/html", html);
    editorPane.setEditable(false);
    getContentPane().add(editorPane);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(new Dimension(400, 600));
    show();

  • How to edit an animated GIF in CS6

    I've looked all over but have yet to find a good tutorial on how to edit an existing GIF I've found on the web. What is the best way to take an existing animated GIF and add text or images on it in CS6? BTW there are lots of tutorials on how to create a gif from scratch from a video but they don't help on editing an existing GIF.

    try this tutorials..
    " http://www.yvelledesigneye.com/2012/05/31/cs6-photoshop-tutorials-tips-tricks/ "
    " http://www.pxleyes.com/video-tutorial/photoshop/17095/Use-the-New-Timeline-in-CS6-to-Creat e-an-Animated-GIF-from-a-Video-.html "

  • How to create an animated gif with CS4?

    Trying to create an animated gif from 8 images using FW CS4.  Can't find "how to" via online FW help.  Have done it before with version 8 -- followed the in-house Help db but CS4 doesn't have in-house db.  I found a tutorial: http://www.entheosweb.com/website_design/animated_gifs.asp, but talks about opening Frames panel (Windows > Frames) and  I can't even find the Frames panel in CS4!
    Just trying to create simple animated gif as temporary portfolio.  Would also like to click on a different link for each image as it rotates if that's possible but main thing is just to create the gif.
    Thanks so much in advance!

    For the first part of your question
    File > Open, then at the bottom of the dialog Tick the open to Open As Animation.
    Then browse/select multiple images, then Open.
    This will automatically add each image to a State (Window > State, previously called Frames).
    Then adjust the Frame Rate of each State. The default is 7th/100 (a sec). You should see the number 7 to the right of each State. Double click to adjust as desired. 100 = 1 second, 200 = 2 seconds and so on.
    Once the animation is configured, go File > Save As > Animated Gif.
    h

  • Animated gif from InDesign CS5

    I am trying to animate 4 pages (of text and graphics) so they appear 1 at a time in an never ending loop in InDesign so I can export and create and animated GIF for a web banner.
    The only way I have managed to do it so far is to group the text and graphics on each page, copy pages 2, 3, 4 onto page 1. Layer them on top of each other, animate them to appear 1 at a time by delaying the timing a second for each.
    But I can't get it to work as a loop. Any tips would be greatly appreciated!

    ziggy - have you found any more about it - its ridiculous that you can have pretty good animation presets and create great looking flash animations that than you can't do anything usefull with.
    Bob - there are lots of other proper tools for this however i em not able to find preset animation palette in photoshop and i'd love to see how long will take you to animate words disapearing in a puff of smoke in photoshop. It took me 30 seconds in indesign. Also as i have poster, flyer, pull up banner design in indesign already with all fonts colours and style for the campaign why should i need to recreate the whole design in photoshop to make elements on the page fade, move and disapear in a puff of smoke?

  • How to download a file version from office 365 using csom

    I need to download an older file version from office 365 and get the data into a byte array. I have no trouble downloading the latest version with File.OpenBinaryStream() and I have no trouble loading the previous file versions with File.Versions. But now
    I need to actually download an older version of the file and it seems the only way is to use File.OpenBinaryDirect. So I am creating a client context using my oAuth access token and providing the correct path, but I am getting a (401) Unauthorized
    error. Looking with Fiddler I can see that the call to OpenBinaryDirect is somehow trying to post to my file URL and the server is responding with 401.
    context = TokenHelper.GetClientContextWithAccessToken(SPHostUrl, AccessToken);
    FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url);  //throws 401
    //leading slash required otherwise ArgumentOutOfRangeException
    I have to be able to access the older file versions with my c# code -- I don't have a viable app without that ability -- any help urgently needed and greatly appreciated!

    Thank you SO much (Can't wait for the next release)!
    For anyone else who lands here, here's the code I ended up using:
    // VersionAccessUser and VersionAccessPassword are stored in web.config
    // web.Url is loaded via the clientContext
    // myVersion is the FileVersion I got from the file's Versions.GetById() method
    // probably a lot of ways to get hostUrl, it just needs to be https://yourdomain.sharepoint.com/
    // - I'm running my app from a subweb
    // I had trouble following the links to get the full MsOnlineClaimsHelper code
    // (the one on msdn.com was missing RequestBodyWriter, WSTrustFeb2005ContractClient,
    // and IWSTrustFeb2005Contract
    // so I've included the code I used here.
    string myVersionFullUrl = string.Format("{0}/{1}", web.Url, myVersion.Url);
    string userName = WebConfigurationManager.AppSettings.Get("VersionAccessUser");
    string strPassword = WebConfigurationManager.AppSettings.Get("VersionAccessPassword");
    string hostUrl = Regex.Replace(web.Url, "([^/]+//[^/]+/).*", "$1");
    MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(hostUrl, userName, strPassword);
    var client = new WebClient();
    client.Headers["Accept"] = "/";
    client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    client.Headers.Add(HttpRequestHeader.Cookie, claimsHelper.CookieContainer.GetCookieHeader(new Uri(hostUrl)));
    var document = client.DownloadString(myVersionFullUrl);
    // These classes are needed to download old versions of files (see: http://social.msdn.microsoft.com/Forums/en-US/7746d857-d351-49cc-b2f0-496663239e02/how-to-download-a-file-version-from-office-365-using-csom?forum=sharepointdevelopment)
    // I cobbled this file from http://social.technet.microsoft.com/Forums/msonline/en-US/4e304493-7ddd-4721-8f46-cb7875078f8b/problem-logging-in-to-office-365-sharepoint-online-from-webole-hosted-in-the-cloud?forum=onlineservicessharepoint
    // and http://fredericloud.com/2011/01/11/connecting-to-sharepoint-with-claims-authentication/
    using Microsoft.IdentityModel.Protocols.WSTrust;
    using Microsoft.SharePoint.Client;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Security;
    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.Text;
    using System.Web;
    using System.Xml;
    using System.Xml.Linq;
    namespace DPSiDoxAppWeb.Helpers
    /// <summary>
    /// Create a new contract to use for issue claims for the SharePoint requests
    /// </summary>
    [ServiceContract]
    public interface IWSTrustFeb2005Contract
    [OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign,
    Action = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
    ReplyAction = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
    AsyncPattern = true)]
    IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state);
    Message EndIssue(IAsyncResult asyncResult);
    /// <summary>
    /// Implement the client contract for the new type
    /// </summary>
    public class WSTrustFeb2005ContractClient : ClientBase<IWSTrustFeb2005Contract>, IWSTrustFeb2005Contract
    public WSTrustFeb2005ContractClient(Binding binding, EndpointAddress remoteAddress)
    : base(binding, remoteAddress)
    public IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state)
    return Channel.BeginIssue(request, callback, state);
    public Message EndIssue(IAsyncResult asyncResult)
    return Channel.EndIssue(asyncResult);
    /// <summary>
    /// Create a class that will serialize the token into the request
    /// </summary>
    class RequestBodyWriter : BodyWriter
    readonly WSTrustRequestSerializer _serializer;
    readonly RequestSecurityToken _rst;
    /// <summary>
    /// Constructs the Body Writer.
    /// </summary>
    /// <param name="serializer">Serializer to use for serializing the rst.</param>
    /// <param name="rst">The RequestSecurityToken object to be serialized to the outgoing Message.</param>
    public RequestBodyWriter(WSTrustRequestSerializer serializer, RequestSecurityToken rst)
    : base(false)
    if (serializer == null)
    throw new ArgumentNullException("serializer");
    _serializer = serializer;
    _rst = rst;
    /// <summary>
    /// Override of the base class method. Serializes the rst to the outgoing stream.
    /// </summary>
    /// <param name="writer">Writer to which the rst should be written.</param>
    protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
    _serializer.WriteXml(_rst, writer, new WSTrustSerializationContext());
    public class MsOnlineClaimsHelper
    #region Properties
    readonly string _username;
    readonly string _password;
    readonly bool _useRtfa;
    readonly Uri _host;
    CookieContainer _cachedCookieContainer = null;
    DateTime _expires = DateTime.MinValue;
    #endregion
    #region Constructors
    public MsOnlineClaimsHelper(string host, string username, string password)
    : this(new Uri(host), username, password)
    public MsOnlineClaimsHelper(Uri host, string username, string password)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = true;
    public MsOnlineClaimsHelper(Uri host, string username, string password, bool useRtfa)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = useRtfa;
    #endregion
    #region Constants
    public const string office365STS = "https://login.microsoftonline.com/extSTS.srf";
    public const string office365Login = "https://login.microsoftonline.com/login.srf";
    public const string office365Metadata = "https://nexus.microsoftonline-p.com/federationmetadata/2007-06/federationmetadata.xml";
    public const string wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
    public const string wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
    private const string userAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
    #endregion
    class MsoCookies
    public string FedAuth { get; set; }
    public string rtFa { get; set; }
    public DateTime Expires { get; set; }
    public Uri Host { get; set; }
    // Method used to add cookies to CSOM
    public void clientContext_ExecutingWebRequest(object sender, WebRequestEventArgs e)
    e.WebRequestExecutor.WebRequest.CookieContainer = getCookieContainer();
    //e.WebRequestExecutor.WebRequest.UserAgent = userAgent;
    // Creates or loads cached cookie container
    CookieContainer getCookieContainer()
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    // Get the SAML tokens from SPO STS (via MSO STS) using fed auth passive approach
    MsoCookies cookies = getSamlToken();
    if (cookies != null && !string.IsNullOrEmpty(cookies.FedAuth))
    // Create cookie collection with the SAML token
    _expires = cookies.Expires;
    CookieContainer cc = new CookieContainer();
    // Set the FedAuth cookie
    Cookie samlAuth = new Cookie("FedAuth", cookies.FedAuth)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(samlAuth);
    if (_useRtfa)
    // Set the rtFA (sign-out) cookie, added march 2011
    Cookie rtFa = new Cookie("rtFA", cookies.rtFa)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(rtFa);
    _cachedCookieContainer = cc;
    return cc;
    return null;
    return _cachedCookieContainer;
    public CookieContainer CookieContainer
    get
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    return getCookieContainer();
    return _cachedCookieContainer;
    private MsoCookies getSamlToken()
    MsoCookies ret = new MsoCookies();
    try
    var sharepointSite = new
    Wctx = office365Login,
    Wreply = _host.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"
    //get token from STS
    string stsResponse = getResponse(office365STS, sharepointSite.Wreply);
    // parse the token response
    XDocument doc = XDocument.Parse(stsResponse);
    // get the security token
    var crypt = from result in doc.Descendants()
    where result.Name == XName.Get("BinarySecurityToken", wsse)
    select result;
    // get the token expiration
    var expires = from result in doc.Descendants()
    where result.Name == XName.Get("Expires", wsu)
    select result;
    ret.Expires = Convert.ToDateTime(expires.First().Value);
    HttpWebRequest request = createRequest(sharepointSite.Wreply);
    byte[] data = Encoding.UTF8.GetBytes(crypt.FirstOrDefault().Value);
    using (Stream stream = request.GetRequestStream())
    stream.Write(data, 0, data.Length);
    stream.Close();
    using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
    // Handle redirect, added may 2011 for P-subscriptions
    if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
    HttpWebRequest request2 = createRequest(webResponse.Headers["Location"]);
    using (Stream stream2 = request2.GetRequestStream())
    stream2.Write(data, 0, data.Length);
    stream2.Close();
    using (HttpWebResponse webResponse2 = request2.GetResponse() as HttpWebResponse)
    ret.FedAuth = webResponse2.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse2.Cookies["rtFa"].Value;
    ret.Host = request2.RequestUri;
    else
    ret.FedAuth = webResponse.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse.Cookies["rtFa"].Value;
    ret.Host = request.RequestUri;
    catch (Exception ex)
    return null;
    return ret;
    static HttpWebRequest createRequest(string url)
    HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.CookieContainer = new CookieContainer();
    request.AllowAutoRedirect = false; // Do NOT automatically redirect
    request.UserAgent = userAgent;
    return request;
    private string getResponse(string stsUrl, string realm)
    RequestSecurityToken rst = new RequestSecurityToken
    RequestType = WSTrustFeb2005Constants.RequestTypes.Issue,
    AppliesTo = new EndpointAddress(realm),
    KeyType = WSTrustFeb2005Constants.KeyTypes.Bearer,
    TokenType = Microsoft.IdentityModel.Tokens.SecurityTokenTypes.Saml11TokenProfile11
    WSTrustFeb2005RequestSerializer trustSerializer = new WSTrustFeb2005RequestSerializer();
    WSHttpBinding binding = new WSHttpBinding();
    binding.Security.Mode = SecurityMode.TransportWithMessageCredential;
    binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
    binding.Security.Message.EstablishSecurityContext = false;
    binding.Security.Message.NegotiateServiceCredential = false;
    binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
    EndpointAddress address = new EndpointAddress(stsUrl);
    using (WSTrustFeb2005ContractClient trustClient = new WSTrustFeb2005ContractClient(binding, address))
    trustClient.ClientCredentials.UserName.UserName = _username;
    trustClient.ClientCredentials.UserName.Password = _password;
    Message response = trustClient.EndIssue(
    trustClient.BeginIssue(
    Message.CreateMessage(
    MessageVersion.Default,
    WSTrustFeb2005Constants.Actions.Issue,
    new RequestBodyWriter(trustSerializer, rst)
    null,
    null));
    trustClient.Close();
    using (XmlDictionaryReader reader = response.GetReaderAtBodyContents())
    return reader.ReadOuterXml();

Maybe you are looking for

  • Why is my bluetooth no longer being recognized by my computer?

    I have a macbook pro and my bluetooth no longer works. The Bluetooth logo at the top is greyed out. Bluetooth does not show up in system preferences for me to turn on. In applications I found Bluetooth File Exchange, but when I click on it I get a me

  • How to remove spaces at selection screen coming from logical database

    Hi Experties, When we hide some selection from the logical database.  The spaces still occupied and this make our selection screen looks awkward. How to remove the spaces left by hidden selection ? Regards Nislina

  • About unlock my iphone 4s

    why i can't unlock my iphone 4s for other carrier ?I think this is not legitimate,When I used the service with verizon, you don't tell me "I can unlcok my iphone 4s ",and now I've ended up contract with VERIZON , you told me to be a user with VERIZON

  • Isight doesn't communicated with I move HD

    I have an Imac G5 with a built in Isight. The isight works fine in chat but when I try a record live video in imovieHD it says that there is no camera connected (blue screen). I have brought quicktime pro thinking that this might help but it hasn't.

  • Images with width and height

    There is a way to insert an image inside of the html code with width and height already? I mean, now, if I want to insert an image at the code, goes only <img src="images/test.gif" /> I d like that if I insert an image it goes as: <img src="images/ca