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 --
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 --
Comment