Announcement

Collapse
No announcement yet.

strange problem with shipping module -- debugging tools?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    strange problem with shipping module -- debugging tools?

    Hi folks --

    I have a shipping module for Old Dominion Freight Lines; it works in the usual way, by sending an MvCALL to retrieve shipping costs from their server. A few months ago, it stopped working. ODFL doesn't seem to have very good logging of their servers; even when I told them the date, time, and IP address of the request, it took them quite a while to get any data on what my module is sending.

    -- and honestly, I don't trust the data they showed me. Accordiing to this alleged log-file excerpt, instead of the usual XML message, my module sent their server several K bytes of junk; it looks like a fragment of a product page in the client's store. My module does have some debugging messages in place, so it displays the request XML at the top of the OSEL page. It looks to me like it's sending the correct XML; and of course, I didn't make any changes to the module around the time that this problem started occurring.

    Before I write back to the ODFL guys and tell them that the log excerpt they sent me is wrong, I'd like to do some verification myself. I wrote a simple Miva Script program that just displays some information about the incoming request. My module has an admin setting for the server URL, so it's easy to send the requests to other places.

    My test script is getting the correct value for the Content-Length, but nothing for the user agent; does Miva Script send a user-agent header on MvCALLs? Also, the test script doesn't show the actual XML. Either it's not there, or Miva Script doesn't translate incoming POST data into global variables, like it does for URL parameters. Can someone confirm that?

    I'm wondering if there is some better tool I can use to find out exactly what my module is sending out. Probably PHP could do a better job of displaying all kinds of info about an incoming request, but I don't have a lot of expertise with PHP. Does anyone have a similar program that's ready to go, or maybe one I could download? Or maybe there's an app on a server somewhere that I can call, that just sends back some information about the incoming request?

    Hope someone can help me solve this puzzle. Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Re: strange problem with shipping module -- debugging tools?

    Hi Kent -

    The Miva engine now has built in logging where it will log both the request and the response. You first need to turn it on in the miva configuration file.

    Here is a thread on how to use it:

    http://extranet.miva.com/forums/show...ript-debug-log

    It works in combination with the diagtool.mvc. Once you generate the log file, it has a tool to parse it and will display the request and response.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: strange problem with shipping module -- debugging tools?

      Thanks, Brennan; I'll check it out.
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment

      Working...
      X