CFHTTP Questions

I have what seems like a very simple task.
I need to use cfhhtp to browse a page and save the contents to a file on the server
My code is:
<cfhttp method="GET" url="https://manage.sprintpcs.com/specialoffers/CheckRebate.do?dispatch=checkRebate&phoneNumber =7815401785&zipCode=02494" resolveurl="Yes" port="443">
</cfhttp>
<cfoutput>#cfhttp.filecontent#</cfoutput>
Seems easy enough...  try it...  see that the results of the cfhhtp are different than the actual data that gets returned from viewing the url in a browser.
Any ideas?
There HAS to be a way to do this with ColdFusion.

When you make a request with CFHTTP the User Agent that is provided to the Web Server at the other end is going to be "ColdFusion" unless you change it to reflect another user agent.  It is not uncommon to for developers to check the user agent and then display a different page depending on the results.  For example I often provide text only templates to ligit spiders.  My Guess is that if you add change the user agent by adding the userAgent parameter property to the cfhttp call and specifying a different common user agent you will get a different result.
-Joe

Similar Messages

  • CFHTTP question

    There is a page I'd like to get some information off of, its
    at :
    https://www.memberst.com/Programs/Sessions.aspx?id=B0144C6D-B481-47B7-806C-1C2FA45AB276
    The issue is, there are 2 categories on that page, one that
    says 'beginning'
    and one that is 'intermediate'.
    Both have a 'more info' option. The one that is listed as
    'beginning' is
    the one I'm interested in. If you click on that more info for
    beginning,
    there is a section that has info such as:
    Start Date End Date SpacesAvailable Status Facility Member
    Program Member
    09/10/07 10/06/07 None Full $15
    $30
    The info I'm looking to grab is the status and
    spacesAvailable so I can
    massage that info on my page....
    Is this possible??? How difficult is it? Any hints?? :)
    Thanks!

    Steve Grosz wrote:
    > Is this possible??? How difficult is it? Any hints?? :)
    >
    it is possible.
    very difficult. you will have to write a complicated regex to
    parse the
    html retuned and get the data you want... very tricky. and if
    at some
    point they change, even a little, the layout of that page or
    the text
    they use to define the data you need, you may have to
    completely
    re-write your regex...
    hints:
    contact the website owners and ask them how you can PROPERLY
    get that
    info from them, instead of trying to illegally scrape their
    website.
    who knows, maybe they already have a web service or some api
    for you to
    use...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • CFHTTP and .cgi question

    Ok, I'm trying to include a search.cgi file into a CF page.
    On the initial
    page load, it displays fine, but when I search, I get a 404
    error.
    The code I have used is:
    <cfhttp url="
    http://www.salleboise.com/search/search.cgi#cgi.QUERY_STRING#"
    method="GET" timeout="60"
    throwonerror="yes" charset="windows-1252"></cfhttp>
    <cfif Len(CFHTTP.FileContent)>
    <cfoutput>#CFHTTP.FileContent#</cfoutput>
    </cfif>
    The search.cgi I can run manually, and it displays the
    results fine.
    What is going on?
    Any ideas????

    Dan, you are the MAN!!
    Thanks!!
    "Dan Bracuk" <[email protected]> wrote in
    message
    news:f4q8ca$nr8$[email protected]..
    > I'm guessing a missing question mark.

  • Cfhttp user-agent question

    I'm trying to get some information off a page. The info I
    want is on:
    https://www.memberst.com/Programs/SessionDetails.aspx?id=A00277BF-262C-4C2A-8FAA-58AAB8465 589&sid=601275
    and its the section that says x of 10 (last I checked it said
    8 of 10).
    I'm using the following code:
    cfhttp method="get"
    url="https://www.memberst.com/Programs/SessionDetails.aspx?id=A00277BF-262C-4C2A-8FAA-58A AB8465589&sid=601275"
    useragent="Mozilla/4.0">
    </cfhttp>
    <cfset txt=cfhttp.FileContent>
    <cfset re = ([-+]?\d+).*?(of).*?(10)>
    <cfset m = #REFindNoCase(#re#,#txt#,1,"TRUE")#>
    <cfif #ArrayLen(m.pos)# gt 1>
    <cfset int1=#Mid(txt,m.pos[2],m.len[2])#>
    <cfset word1=#Mid(txt,m.pos[3],m.len[3])#>
    <cfset int2=#Mid(txt,m.pos[4],m.len[4])#>
    <cfoutput>
    (#replace(int1,"<" ,"&lt;")#)(#replace(word1,"<"
    ,"&lt;")#)(#replace(int2,"<" ,"&lt;")#)
    </cfoutput>
    </cfif>
    But it seems that the cfhttp is not using the user-agent, as
    I get back
    10px; when I dump out 1 of the locations......
    Any suggestions??

    Anyone have any ideas??? Thoughts??
    "Steve Grosz" <[email protected]> wrote in
    message
    news:fe3jd7$6nl$[email protected]..
    > I'm trying to get some information off a page. The info
    I want is on:
    >
    https://www.memberst.com/Programs/SessionDetails.aspx?id=A00277BF-262C-4C2A-8FAA-58AAB846 5589&sid=601275
    >
    > and its the section that says x of 10 (last I checked it
    said 8 of 10).
    >
    > I'm using the following code:
    >
    > cfhttp method="get"
    >
    url="https://www.memberst.com/Programs/SessionDetails.aspx?id=A00277BF-262C-4C2A-8FAA-58A AB8465589&sid=601275"
    > useragent="Mozilla/4.0">
    > </cfhttp>
    >
    > <cfset txt=cfhttp.FileContent>
    >
    > <cfset re = ([-+]?\d+).*?(of).*?(10)>
    > <cfset m = #REFindNoCase(#re#,#txt#,1,"TRUE")#>
    > <cfif #ArrayLen(m.pos)# gt 1>
    > <cfset int1=#Mid(txt,m.pos[2],m.len[2])#>
    > <cfset word1=#Mid(txt,m.pos[3],m.len[3])#>
    > <cfset int2=#Mid(txt,m.pos[4],m.len[4])#>
    > <cfoutput>
    > (#replace(int1,"<"
    ,"&lt;")#)(#replace(word1,"<"
    > ,"&lt;")#)(#replace(int2,"<" ,"&lt;")#)
    > </cfoutput>
    > </cfif>
    >
    > But it seems that the cfhttp is not using the
    user-agent, as I get back
    > 10px; when I dump out 1 of the locations......
    >
    > Any suggestions??
    >
    >

  • CFHTTP get question

    There is a page I'd like to get some information off of, its
    at :
    https://www.memberst.com/Programs/Sessions.aspx?id=B0144C6D-B481-47B7-806C-1C2FA45AB276
    The issue is, there are 2 categories on that page, one that
    says 'beginning'
    and one that is 'intermediate'.
    Both have a 'more info' option. The one that is listed as
    'beginning' is
    the one I'm interested in. If you click on that more info for
    beginning,
    there is a section that has info such as:
    Start Date End Date SpacesAvailable Status Facility Member
    Program Member
    09/10/07 10/06/07 None Full $15
    $30
    The info I'm looking to grab is the status and
    spacesAvailable so I can
    massage that info on my page....
    Is this possible??? How difficult is it? Any hints?? :)
    Thanks!

    Steve Grosz wrote:
    > Is this possible??? How difficult is it? Any hints?? :)
    >
    it is possible.
    very difficult. you will have to write a complicated regex to
    parse the
    html retuned and get the data you want... very tricky. and if
    at some
    point they change, even a little, the layout of that page or
    the text
    they use to define the data you need, you may have to
    completely
    re-write your regex...
    hints:
    contact the website owners and ask them how you can PROPERLY
    get that
    info from them, instead of trying to illegally scrape their
    website.
    who knows, maybe they already have a web service or some api
    for you to
    use...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • How to fix a problem with the order of strings in a JSON response for a CFHTTP request?

    Good morning, guys! (It's 10:50 a.m. in Brazil)
    First of all, I'm still new at CF and my questions may seem too much silly and my English's not the best, so, please be patient with me. hehe
    Well, I'm accessing a link via CFHTTP that gives me a JSON response. I'm not familiar with JSON yet, so I'm working it as a string and using string functions (Find,RemoveChars,Replace,etc), but it happens to me that I'm receiving a certain kind of order of the strings list from the JSON when I access it directly from the browser and other kind of order totally different when I access it from the CFHTTP.
    I only figured it out because I was working at home with my code and there everything went just fine as expected. Then I brought to my job to develop a little bit more as soon as I get a free time and here my code doesn't work anymore. When I took a look at the JSON by a CFOUTPUT, I realized the strings were in a different order.
    Does anyone know why is it happening?
    Link to the JSON: http://sigmine.dnpm.gov.br/ArcGIS/rest/services/extra/dados_dnpm/MapServer/0/query?text=83 0620/2012&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelInter sects&where=&returnGeometry=true&outSR=&outFields=FID,Shape,PROCESSO,ID,NUMERO,ANO,AREA_HA ,FASE,ULT_EVENTO,NOME,SUBS,USO,UF&f=pjson
    Basic code simplified to find out that the order of strings were coming different when access by CFHTTP:
    <cfhttp url="#URLAbove#" method="get" result="DadosDoDNPM" charset="utf-8" timeout="10000" />
    <cfset DadosJSON = deserializeJSON(DadosDoDNPM.FileContent) />
    <cfif arrayLen(DadosJSON.features)>
        <cfset CodigoFonteJSON = ToString(serialize(DadosJSON.features)) />   
        <cfoutput> #CodigoFonteJSON# </cfoutput>
    </cfif>
    Is there a way to fix it and to make my code work everywhere?
    If it matters, I use Railo at home and at my job.
    Since now, I thank you.

    When you deserialize JSON data, ColdFusion converts it into native structures and arrays (roughly equivalent to JavaScript objects and arrays).  In ColdFusion, structures are unordered (that is, they don't maintain keys in any particular ordered sequence).
    This really shouldn't be a problem though, at least not if you just want to work with the data contained in the deserialized JSON structure.  So DadosJSON should be a native ColdFusion structure, and you can interact with it like any other structure in ColdFusion.  In fact, you should not have to re-serialize it at all unless you need to send it to an external application using JSON.
    Why are you reserializing the data?  And why use serialize() instead of serializeJSON()?
    -Carl V.

  • Cfhttp error on CF7 but not CF8 - need help

    I have been battling this for a few days now, and I am starting to go a bit insane.  So, I am hoping someone can offer some assistance.
    I am trying to make a call to the Live Contacts API.  On CF8, I can get this to work but on CF7 it throws an error:
    <cfhttp url="#theURL#" method="get" result="httpResult">
         <cfhttpparam type="header" name="Authorization" value="DelegatedToken dt=""#dt#""" />
         <cfhttpparam type="header" name="Accept-Encoding" value="*" />
    </cfhttp>
    The Error:
    Charset
    [empty string]
    ErrorDetail
    I/O Exception: peer not authenticated
    Filecontent
    Connection Failure
    Header
    [undefined struct element]
    Mimetype
    Unable to determine MIME type of file.
    Responseheader
    struct [empty]
    Statuscode
    Connection Failure.  Status code unavailable.
    Text
    YES
    theURL and dt are dynamically created with the info returned from the consent token.  This process fine and they are what they should be.  But there is a difference between versions that is throwing it off.  My theory is that it is a charset issue.  I ran into similar with Gmail Contacts API on CF7 v CF8.  I was able to get that resolved by using: charset="utf-8".  However, that doesn't work for Live.  <cfhttp url="#theURL#" method="get" result="httpResult" charset="utf-8">.
    I have tried about every combination I can think of but still get a connection error.  On CF8 servers (tested on two different ones) it worked perfect.
    In googling and looking at forums, I notice this in reference to an SSL issue.  I don't think that is the case here, as one of my servers doesn't have an SSL in use that would affect things.  But, it is in a hosting environment, so maybe.
    I think I am missing something small or some combination of headers or something.  Any help would be greatly appreciated...and maybe ever rewarded with a Starbucks GC!  If you have any questions or need any more info let me know.
    Thanks.

    also sent to you on twitter:
    you have:
    <cfhttpparam type="header" name="Authorization" value="DelegatedToken dt=""#dt#""" />
    try:
    <cfhttpparam type="header" name="Authorization" value='DelegatedToken dt="#dt#"' />
    note the use of single and double quotes.
    not sure if that would cause it but worth a shot.
    Does the Live API require that the dt be surrounded by double quotes?

  • Using cfhttp to read a page and write its contents to a file.

    Hi,
    I am trying to get a feed of my ebay store listings to load
    into froogle. Unfortunately, ebay provides the feed as a website
    not a file and froogle (via GoogleBase) needs the file to be
    submitted as an XML file.
    Is there a way to use something like cfhttp to load up the
    page where the feed is located, scan the page and write it's
    contents into an XML file that I can then load up to GoogleBase???
    thanks for the help.

    ignore me now.... I answered my own question a short while
    ago.
    for anyone who cares....
    I used CFHTTP to get the page and then used a cffile to write
    the #cfhttp.filecontent# into the new file!

  • How to POST JSON to CFHTTP

    Hi,
    I need help to write RESTful cfc to accept call from jquery in JSON format.
    This is approximate format of the structure as an argument to the cfc:
    returns:
    code: 200  // Successfull
    data: {
        "success": true,
        "result": {
            "questions":[
                {"question_id": "1", "question_answert": "some text..."},
                {"question_id": "2", "question_answer": "some text..."},
                {"question_id": "3", "question_answer": "some text..."}
    This is cfc to parse JSON:
    <cffunction output="yes" name="verifyQuestions" access="remote" produces="application/json" returnType="string" httpmethod="post">
                  <cfargument name="questanswers" type="string" restargsource="path"/>
            <cfset cfData = DeserializeJSON(questanswers)>
            <cfset colList = ArrayToList(cfData.COLUMNS)>
            <cfset qIdx = ListFind(colList, "question_id")>
            <cfset aIdx = ListFind(colList, "question_answer")>
              <!--- loop through the structure and validate it here against db --->
            <cfloop index="i" from="1" to="3">
                question id: #cfData.DATA[i][qIdx]#
                answer: #cfData.DATA[i][aIdx]#
            </cfloop>
            <cfreturn VARIABLES.vcDeserilized>
        </cffunction>
    This is a cfm file to test RESTful cfc:
    <cfhttp url="http://10.200.5.2/rest/login/questions/" method="post">
    <cfhttpparam type="formfield" value="[{question_id:'4', question_answer:'test 4'},{question_id:'6', question_answer:'test 6'},{question_id:'8', question_answer:'test 8'}]" name="questanswers">
    </cfhttp>
    <cfoutput>#cfhttp.filecontent#</cfoutput>
    When run the file above I am getting
    {"Message":"JSON parsing failure: Expected '\"' at character 3:'q' in [{question_id:'4', question_answer:'test 4'},{question_id:'6', question_answer:'test 6'},{question_id:'8', question_answer:'test 8'}]"}
    Also, from what I understand debug from RESTful cfc's is problematic. Does my cfc syntax look correct to accept JSON formatted object?
    Thanks,
    Gena

    The JSON that you are sending in the cfhttpparam is invalid, test the string out with IsJSON or use a tool like http://jsonlint.com/ to find the error.

  • Unable to make a local CFHTTP request using CF9 + IIS7 + Vista

    Hi CFers
    Screenshot attached.
    Just wondering if anyone else has had issues with CF not dealing with local CFHTTP requests to IIS on Vista.
    So far it seems that CFHTTP makes a call to IIS, it shows up in the IIS logs as a 200, but CF returns a Connection Timeout (note it doesn't matter if you make it a ridiculous timeout, its a real simple page). Also if you make the request in the URL it in browser it's fine.
    CFHTTP works fine for anything not local. It's not HTTPS and not using compression. Both CF and IIS are using the same user account. Running CF9 Dev Edition, IIS7 and Vista Business.
    http://stackoverflow.com/questions/2218615/cfhttp-and-iis-7-connection-failture-not-ssl
    I'm stumped, any help would be greatly appreciated!
    Dave

    G'day Dave
    Hey, what happens if you give it a different useragent value?  It's a long shot, but something easy to try.
    When you're browsing to the URL and it works, you're browsing from the desktop of the server itself, yes?
    And if you use the inbuilt JWS web server instead of IIS, it works fine?
    Adam

  • Slowing Down a CFHTTP request

    i have a chunk of code that loops over a CFHTTP request to
    download files off a server. I do not get all the files I am
    supposed to, and I'm guessing it's because the loop runs too fast.
    if i run the code one at a time, i get what i expect. is there
    anyway to slow down the loop or to fix my problem?
    <CFLOOP...>
    <CFHTTP....
    </CFLOOP>

    Your comment, as usual, totally out of topic. The code provided
    shows an approach to slowdown the sequence of CFHTTP requests, by
    imposing timeouts between them, sInce this was identified as the
    initial problem/question. Has nothing to do with your "smart"
    comments and suggestions. If this works, the scope attribute can be
    replaced with an arbitrary name.
    Mr Black, it is unwise, very unwise, to apply a server-scoped
    lock the way you do.
    Definitely, not session-dependent. Guess why?
    Why not? In other words, why may I not store the name of a
    query in the session scope?
    If you wish to argue, then argue on those technical points.
    You're quite capable of that. The forum will benefit more from it
    than from you slinging cheap adjectives about.

  • Using CFHTTP to call a web service

    We are using a CF5 server, and will not be updating to MX any
    time soon. I need to call a web service, and understand I can do
    this with CFHTTP. Can anyone direct me to any docs or give me
    examples of how to do this?

    Answered my own question. The problem I had was returning
    complex datatypes. CFHTTP.FILECONTENT actually comes back as WDDX
    from an MX web service, so I was able to use the CFWDDX tag to turn
    a Soap structure into a CF structure, and it works
    perfectly.

  • Would cfhttp be a solution?

    Hello,
    I am trying to gather information from a third party server.
    When using a standard <form method=post> I can go to their
    site with my proper identification and get a response. It comes
    back with: (an example of garbage data)
    1,0
    0000,127.0.0.1,1000,2008-04-02,5555
    Now I think I'd be better off if I could use cfhttp post with
    parameters but I get an I/O error and connection refused in my
    filecontent. I am using the same username/password but I might be
    using the incorrectly.
    Any answers? Any guiding information would be appreciated.
    Thank you.

    Your questions are really about how you are going to approach your stop motion, not about how you will edit it. Although FCP has the usual VFX tools and there are ways you can use these to create 'animation', it's not what you're looking to do, I don't believe. FCP could indeed be used to storyboard, cut, rearrange and edit your animation sequences, add multitrack audio to the sequence, and master output. But it is NOT an animation system. Although as mentioned, you could prep layers and lay these over characters layers, where are you going to prepare those layers? Stop thinking about FCP and look to what you want to do to create the frames for your movie - FCP will come later if you need it.
    Take a look at Boinx iStopMotion (at http://www.istopmotion.com), a very nice stop motion package for digital cameras. And think more about the steps and stages you will go through to produce your animation. No software package can create your animation for you (unless you're going down the CG road, in which case look to Maya, XSI, 3DS Max or similar). Remember, as with all animation - AUDIO COMES FIRST!

  • Cfhttp + post + multipart problem

    Hi, I’m trying to make cfhttp request with post method and multipart=”yes” attrib (trying to emulate form submiting). I use CF8 build 8.01, Wireshark, FF 3.6.16.
    The problem is that I get Status code: 500 Internal Server Error in response
    My cf code:
    <cfscript>
    request.strRAtr = {
        method="post",
          url="….",
          useragent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 (.NET CLR 3.5.30729)",
          redirect="no",
          multipart = "yes";
          result = "variables.strReqRes"     
    request.arrRParam = [
          {     type = "header",
                            name="Host",
                            value="…"
          {     type = "header",
                            name="Accept",
                            value="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"      
          {     type = "header",
                            name="Accept-Language",
                            value="en-us,en;q=0.5"       
          {     type = "header",
                            name="Accept-Encoding",
                            value="gzip,deflate"
          {     type = "header",
                            name="Accept-Charset",
                            value="ISO-8859-1,utf-8;q=0.7,*;q=0.7"
          {     type = "header",
                            name="Keep-Alive",
                            value="115"
          {     type = "header",
                            name="Connection",
                            value="keep-alive"
    {     type = "header",
                            name="Referer",
               value="…."
    request.strCookieParam = {
          type="cgi",
          name="Cookie",
          value="……",
          encoded="no"           
    </cfscript>
    <cfhttp attributecollection="#request.strRAtr#">
                <cfloop from="1" to="#arrayLen(request.arrRParam)#" index="i">
    <cfhttpparam      type = "#request.arrRParam[i].type#"
                      name = "#request.arrRParam[i].name#"
                                  value = "#request.arrRParam[i].value#">
                </cfloop>
    <cfhttpparam      type = "formfield"
                      name = "wizardMode"
                      value = "…">
    <cfhttpparam attributecollection="#request.strCookieParam#">
    </cfhttp>
    I’ve analysed the Wireshark – the difference between cfrequest and request from FF is in <mime_multipart chunk> (I export captured data from Wireshark into PDML – xml packet detail)
    From FF I’ve get:
    <proto name="mime_multipart" showname="MIME Multipart Media Encapsulation, Type: multipart/form-data, Boundary: &quot;---------------------------311112870412835&quot;" size="4585" pos="936">
        <field name="mime_multipart.type" showname="Type: multipart/form-data" size="0" pos="936" show="multipart/form-data"/>
        <field name="" show="First boundary: -----------------------------311112870412835\r\n" size="46" pos="936" value="2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d333131313132383730343132 3833350d0a"/>
        <field name="mime_multipart.part" showname="Encapsulated multipart part: " size="57" pos="982" show="" value="436f6e74656e742d446973706f736974696f6e3a20666f726d2d646174613b206e616d653d2277697a 6172644d6f6465220d0a0d0a74727565">
          <field name="mime_multipart.header.content-disposition" showname="Content-Disposition: form-data; name=&quot;wizardMode&quot;\r\n\r\n" size="53" pos="982" show="form-data;name=\&quot;wizardMode\&quot;" value="436f6e74656e742d446973706f736974696f6e3a20666f726d2d646174613b206e616d653d2277697a 6172644d6f6465220d0a0d0a"/>
          <field name="data" value="74727565"/>
            <field name="data.data" showname="Data: 74727565" size="4" pos="1035" show="74:72:75:65" value="74727565"/>
            <field name="data.len" showname="Length: 4" size="0" pos="1035" show="4"/>
              </field>
    And from CFHTTP:
    <proto name="mime_multipart" showname="MIME Multipart Media Encapsulation, Type: multipart/form-data, Boundary: &quot;-----------------------------7d0d117230764&quot;" size="6297" pos="1049">
        <field name="mime_multipart.type" showname="Type: multipart/form-data" size="0" pos="1049" show="multipart/form-data"/>
        <field name="" show="First boundary: -------------------------------7d0d117230764\r\n" size="46" pos="1049" value="2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d37643064313137323330 3736340d0a"/>
        <field name="mime_multipart.part" showname="Encapsulated multipart part:  (text/plain)" size="98" pos="1095" show="" value="436f6e74656e742d446973706f736974696f6e3a20666f726d2d646174613b206e616d653d2277697a 6172644d6f6465220d0a436f6e74656e742d547970653a20746578742f706c61696e3b20636861727365743d55 54462d380d0a0d0a74727565">
          <field name="mime_multipart.header.content-disposition" showname="Content-Disposition: form-data; name=&quot;wizardMode&quot;\r\n" size="51" pos="1095" show="form-data;name=\&quot;wizardMode\&quot;" value="436f6e74656e742d446973706f736974696f6e3a20666f726d2d646174613b206e616d653d2277697a 6172644d6f6465220d0a"/>
          <field name="mime_multipart.header.content-type" showname="Content-Type: text/plain; charset=UTF-8\r\n\r\n" size="43" pos="1146" show="text/plain;charset=UTF-8" value="436f6e74656e742d547970653a20746578742f706c61696e3b20636861727365743d5554462d380d0a 0d0a"/>
          <proto name="data-text-lines" showname="Line-based text data: text/plain" size="4" pos="1189">
            <field name="" show="true" size="4" pos="1189" value="74727565"/>
          </proto>
        </field>
    As you can see, CFHTTP creates «Encapsulated multipart part:  (text/plain)» and «data-text-lines» – why??? I suppose, that this difference is explanation of Status code: 500 Internal Server Error in response. Am I right? And what I have to do for right post in that case?
    Thanks.

    So, my question - my answer. First of all,  my supposition about "...I suppose, that this difference is explanation of Status code: 500 Internal Server Error in response..." was WRONG!
    For all people, who want to uderstand post_multipart I recomend to read RFC1341 (http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html)
    My problem was on another side:
    I post "wrong" example in this thread -  in cfhttp I rote "...
    <cfhttpparam      type = "formfield"
                      name = "wizardMode"
                      value = "…">...
    But actualy value was "-1". In CFML Reference on p.290 I found that: "...All
    form field data must be encoded in this character encoding, and ColdFusion does not
    URLEncode the data..."!!!!!
    That's IT !!!!!
    I forgot about URLEncodedFormat function - and this was my actual problem!!!

  • Cfhttp to verizon

    I need to login to the verizon picturemail download screen
    and download the images dynamically. I have tried several
    variations on the cfhttp tag as well as the cf_httpx5 custom tag. I
    have not been able to connect successfully. I am looking for
    someone who has done this successfully, recently, who can guide me
    in this process.
    The company I work for had a working dynamic system
    (scheduled procedure) that was running up until a few months ago,
    but apparently the website has had an upgrade and we can no longer
    connect dynamically.
    Any suggestions and assistance will be greatly appreciated.
    William

    I actually just solved this issue this morning when i
    realized every computer but the server could see this url and
    cfhttp to it with no issues. It turned out after talking with my
    hosting provider they had a DNS entry for the url in question that
    did not match the IP address that was the real location of the URL.
    They have updated their DNS entries for the URL and now I am able
    to connect appropriately.

Maybe you are looking for

  • Hdmi connector no sound

    I plugged the HDMI with power port connecto in to the iPad  and an IPad2 and I get the video but no sound. Their is audio coming out of the headset connector, but needless to say I want to use my reciever. Does anyone have a solution to this problem?

  • Performance tuning of sql query with multiple joins

    My query takes at least half an hour to execute and the number of records returned are approx 1 lakh records. Structure of tables are: tblSession : ID,option1,option2,option3,option4,option5,option6,option7,option8,option9. tblOption : ID, labelID tb

  • Help me,  How to read data from USB ???

    Help me, How to read data from USB ???

  • Suggestion for good book/reference of flex and blazeDS

    hi...been developing the client side with flex for some time and now getting into server side and found some stuff from adobe and other short articles about blaze and servers but really looking for a good book/reference...thought i'd buy a book calle

  • Mr Harold Thornett

    Dear friend  Help Please   haveing downloaded flashplayer 11 as requested , and been accepted, i am told to down load again, when i log on to the maps. Help  i am 84 yrs so not up to this new hi-tech.Harry