HttpRequest, HttpResponse classes

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

    HttpRequest, HttpResponse classes

    Hello!

    I am studying the way PHP allows programmers to manipulate Http
    communication, and have looked at the HttpRequest and HttpResponse
    classes.

    All functions I find in the documentation relate to or use primitives,
    arrays and unspecified objects. Have yet to find a single function
    that either returns a HttpRequest (Respons) or uses it as a parameter.

    I would like examples, if any exist, of how object instances of these
    classes may be used.

    thanks alot!

    Michael
  • Jerry Stuckle

    #2
    Re: HttpRequest, HttpResponse classes

    Michaelp wrote:
    Hello!
    >
    I am studying the way PHP allows programmers to manipulate Http
    communication, and have looked at the HttpRequest and HttpResponse
    classes.
    >
    All functions I find in the documentation relate to or use primitives,
    arrays and unspecified objects. Have yet to find a single function
    that either returns a HttpRequest (Respons) or uses it as a parameter.
    >
    I would like examples, if any exist, of how object instances of these
    classes may be used.
    >
    thanks alot!
    >
    Michael
    >
    Michael,

    Nothing returns an object of either of these classes. You create the
    objects yourself (with new) and use their methods to do what you want.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...