Re: CLI and HTTP diagnostics design



Derek Fountain <nomail@xxxxxxxxxxxxxxx> wrote:

I'm putting together a small PHP application which produces as its
output an XML file. The application needs to run from either an HTTP
request or a CLI invocation. HTTP requests don't come from a web
browser, they're called from an application that talks HTTP.

The issue I have one of diagnostics. The specification says there needs
to be a method for the user to see both runtime narration (i.e. what the
process does and why it chooses to do it), runtime warnings (i.e. non
fatal errors) and fatal errors.

Is this homework? You wouldn't generally see this kind of "specification"
in the wild, because it doesn't make sense. An HTTP request only has one
output stream. If the output has to be XML, then that's going to occupy
the output stream.

If this is for debugging and tracing, one perfectly valid option is to add
the diagnostics and log messages as <!-- comments --> in the XML file. That
would work in either CGI or HTTP.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • [Full-disclosure] HTTP over X.509 - Windows Live Mail
    ... HTTP over X.509 (S/MIME) - Windows Live Mail ... The HTTP requests are sent ... Why this advisory has no CVE ID: ...
    (Full-Disclosure)
  • [Full-disclosure] HTTP over X.509 - Microsoft Outlook
    ... HTTP over X.509 - Microsoft Outlook ... The HTTP requests are sent ... Why this advisory has no CVE ID: ...
    (Full-Disclosure)
  • Programatically Build and Post Form
    ... Automatically send the XML file to a remote server as an HTTP POST ... The problem is how to take this string and stream it to the ...
    (microsoft.public.dotnet.general)
  • Re: CLI and HTTP diagnostics design
    ... output an XML file. ... The application needs to run from either an HTTP ... HTTP requests don't come from a web ... diagnostic output is only included if the server detects an active ...
    (comp.lang.php)
  • OWC10 wont work over HTTPS
    ... I have a CGI which I have written that generates an XML file for OWC.....I'm ... it works fine in both http and https. ... can get a more detailed error message than 'Error opening data file' or any ...
    (microsoft.public.office.developer.web.components)