Problem with MMHttp.GetFile()

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Problem with MMHttp.GetFile()

    If I use MMHttp.GetFile("http://www.w3.org/Icons/valid-html401") the
    data property is ".../Icons/valid-html401/index.html"! Arghh! It's
    assuming that the URL is a directory. Is there a way to make it not
    assume that? It's a valid URI that points to an image file. No extension
    is present to allow the server to serve a GIF or PNG depending on the
    browser's Accept headers.

    --
    Jerry Baker

    Automatic ALT text on all images
    HTML and XHTML doctype switching with a mouse click
    "Insert Image+" and "Insert (X)HTML Doctypes" Extensions
    [url]http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn103&authorid=21726084[/url]
    Jerry Baker Guest

  2. Similar Questions and Discussions

    1. HTTPS and MMHttp in Dreamweaver CS3 for Mac
      MMHttp doesn't seem capable of HTTPS communication in Dreamweaver CS3 for Mac. When I do something like ...
    2. contribute problem - access denied file may not existpermission problem
      Recieving the following error message - "access denied file may not exist , or there could be a permission problem" this happened this morning ,...
    3. use MMHttp.getFile to get file from ftp server?
      can i use MMHttp.getFile(ftp://user:pwd@ftp.Host.com:21/file.xml) to get file.xml from the ftp server? it always return 12007 Thx a lot
    4. MMHttp.getText or MMHttp.postText server timeout
      We are using MMHttp.getText or MMHttp.postText to send requests to server. Some request take several minutes to complete and Dreamweaver gets a...
    5. Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
      HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I...
  3. #2

    Default Re: Problem with MMHttp.GetFile()

    Jerry Baker wrote:
    > If I use MMHttp.GetFile("http://www.w3.org/Icons/valid-html401") the
    > data property is ".../Icons/valid-html401/index.html"!
    Yep, there's no way around it. My extension's feature is dead in the
    water until MM fixes this.

    --
    Jerry Baker

    Automatic ALT text on all images
    HTML and XHTML doctype switching with a mouse click
    "Insert Image+" and "Insert (X)HTML Doctypes" Extensions
    [url]http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn103&authorid=21726084[/url]
    Jerry Baker Guest

  4. #3

    Default Re: Problem with MMHttp.GetFile()

    Jerry Baker wrote:
    > If I use MMHttp.GetFile("http://www.w3.org/Icons/valid-html401") the
    > data property is ".../Icons/valid-html401/index.html"! Arghh! It's
    > assuming that the URL is a directory. Is there a way to make it not
    > assume that? It's a valid URI that points to an image file. No extension
    > is present to allow the server to serve a GIF or PNG depending on the
    > browser's Accept headers.
    I guess that since DW technically isn't a browser it might not (probably
    not) have Accept headers to send that the server could differentite between.

    Why not link directly to the one of the images?
    [url]http://www.w3.org/Icons/valid-html401.gif[/url]
    [url]http://www.w3.org/Icons/valid-html401.png[/url]

    Then you can ask the user do they want the gif or png for their site.


    Danilo
    danilocelic *TMM* Guest

  5. #4

    Default Re: Problem with MMHttp.GetFile()

    danilocelic *TMM* wrote:
    > Why not link directly to the one of the images?
    > [url]http://www.w3.org/Icons/valid-html401.gif[/url]
    > [url]http://www.w3.org/Icons/valid-html401.png[/url]
    >
    > Then you can ask the user do they want the gif or png for their site.
    Because I can't control what is passed to that function. It comes from
    the SRC attribute of an image tag in a DW document. If they have that as
    their SRC, my extension dies.

    --
    Jerry Baker

    Automatic ALT text on all images
    HTML and XHTML doctype switching with a mouse click
    "Insert Image+" and "Insert (X)HTML Doctypes" Extensions
    [url]http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn103&authorid=21726084[/url]
    Jerry Baker Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139