Add Custom HTTP Request Headers

4 posts, 0 answers
  1. Jay
    Jay  avatar
    2 posts
    Member since:
    Mar 2012

    Posted 17 Jul 2012 Link to this post

    We are using the Silverlight Upload component against a custom handler which implements RadUploadHandler within an ASP.net application.  Our web application uses 3rd party single sign on authentication mechanism which requires a custom header when sending requests to the ASP.net app.   Is there any way I can access the HTTP Request object the Uploader component uses when posting to the RadUploadHandler?

    Thank you.

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 19 Jul 2012 Link to this post

    Hello Jay,

     In your "CustomUploadHandler" which inherits from RadUploadHandler you are able to use the Request property. The full list of methods and properties of the RadUploadHandler class is available in this help article:
    RadUpload- Features - Upload Handler
    Please let us know if you need further assistance.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Jay
    Jay  avatar
    2 posts
    Member since:
    Mar 2012

    Posted 19 Jul 2012 Link to this post

    I need to add cookies to the request object from the Silverlight side, not the asp.net handler.  How do I access the request object your Silverlight Upload component uses?
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Jul 2012 Link to this post

    Hi Jay,

    The RadUpload control doesn't expose the request in its client-side API as it makes the request internally. However, you can examine the mechanisms for passing parameters from the client to the server side of the RadUpload to see if they can help you implement your scenario.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top