A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Question about URLRequest

Threaded View

  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    69

    Question about URLRequest

    I'm a little lost with regard to two properties of this class:

    contentType
    requestHeaders


    Is there any direct correlation between them?

    As far as I know contentType is used to specify the MIME type of the data to be sent, whereas requestHeaders is an array which contains each header. So, what if I write something like this?:

    PHP Code:
    var headers:Array = new Array(new URLRequestHeader("Content-Type""text/html"));
    myURLRequest.requestHeaders headers;
    myURLRequest.contentType "application/octet-stream"// instead of "text/html" 
    wouldn't it be an incongruity?? I'm not very keen on HTTP headers so I'm not sure if both refer to the same thing or not.
    Last edited by Jazztronik; 07-23-2009 at 02:13 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center