PHP command-line version of http form post

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KhanyBoy

    PHP command-line version of http form post

    Hi,

    heres my problem.

    I can consume a soap server in php within a browser by 'post'ing a
    form variable that contains XML - no problem. However, if I want to
    use the php command line to send the same data in the same way (as the
    soap server sees it), what command-line grammar do i use?

    Its trickey I know so ask for more information if you're not sure.

    thanks in advance.
  • Leslie

    #2
    Re: PHP command-line version of http form post

    "KhanyBoy" <sharif@unitybu sinesssoftware. co.uk> wrote in message
    news:27ceefe9.0 404301236.1c222 0de@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > heres my problem.
    >
    > I can consume a soap server in php within a browser by 'post'ing a
    > form variable that contains XML - no problem. However, if I want to
    > use the php command line to send the same data in the same way (as the
    > soap server sees it), what command-line grammar do i use?
    >
    > Its trickey I know so ask for more information if you're not sure.
    >
    > thanks in advance.[/color]

    something like this maybe (linux):
    cat some_post_data. txt | /usr/bin/php

    or windows:
    type some_post_data. txt | php.exe

    not tested it, but that should generally work as far as I know.


    Comment

    Working...