curl and sent headers

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default curl and sent headers

    is there any way of seeing exactly what headers cURL sent in a transfer,
    with PHP?
    John Ryan Guest

  2. Similar Questions and Discussions

    1. #40179 [NEW]: Compilation of cURL extension fails with cURL 7.16.0
      From: iain at workingsoftware dot com dot au Operating system: FreeBSD 6.0 PHP version: 5.2.0 PHP Bug Type: Compile Failure...
    2. CURL - Going to URL
      On a web site that I am developing I have a form that needs to be validated before sending the form data and the user to an external web site....
    3. CURL - SSL
      Anyone knows how to get a simple(HTML) https response using CURL session. Thanks a million!! Rodrigo Nakahodo --- Outgoing mail is...
    4. CURL
      theres this site i want to use to execute a command by visting a url. like http://www.site.com/stuff.php?id=1234&message=hello_world when i visit...
    5. PHP & Authorize.net w/o cURL?
      Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company...
  3. #2

    Default Re: curl and sent headers

    i found out myself if anyone wants to know...


    "John Ryan" <celticfc@iol.ie> wrote in message
    news:20030908222439.66624.qmail@pb1.pair.com...
    > is there any way of seeing exactly what headers cURL sent in a transfer,
    > with PHP?
    John Ryan Guest

  4. #3

    Default Re: [PHP] Re: curl and sent headers

    --- John Ryan <celticfc@iol.ie> wrote:
    > is there any way of seeing exactly what headers cURL sent in a
    > transfer, with PHP?
    --- John Ryan <celticfc@iol.ie> wrote:
    > i found out myself if anyone wants to know...
    Yes, please. It is always helpful (and courteous) to mention how you solved
    your original problem when interacting with this list. This allows you to
    contribute back to the list, and ultimately the PHP community. :-)

    Even if the answer someone else gave is sufficient, it is nice to quote that
    answer and give a quick "that worked" for archival purposes. This way when
    someone references the archive seeking the answer to the same question, they
    can see which answer worked for you (the person they will likely relate to the
    most).

    And, though it doesn't apply to you in this case, it is nice to thank the
    person who helped you solve a particular problem. The only motivation for
    pouring a lot of effort into responding to the questions here is to feel like
    you're helping a lot of people. John Holmes comes to mind as a frequent
    contributor, as do many others (is there a list?).

    Thanks for your help.

    Chris

    =====
    Become a better Web developer with the HTTP Developer's Handbook
    [url]http://httphandbook.org/[/url]
    Chris Shiflett Guest

  5. #4

    Default Re: [PHP] Re: curl and sent headers

    yeah, sure.

    well, for archival purposes, i couldnt do it with PHP. the verbose option
    didnt work with PHP, CURLOPT_VERBOSE. but it did work on the command line.
    so i logged in and re-created my curl transfer on the command line with an
    added -v, for verbose. and it gave me back the headers it sent to the site,
    i saw my problem straight away, and modified the PHP script.

    "Chris Shiflett" <shiflett@php.net> wrote in message
    news:20030909025927.76920.qmail@web14301.mail.yaho o.com...
    > --- John Ryan <celticfc@iol.ie> wrote:
    > > is there any way of seeing exactly what headers cURL sent in a
    > > transfer, with PHP?
    >
    > --- John Ryan <celticfc@iol.ie> wrote:
    > > i found out myself if anyone wants to know...
    >
    > Yes, please. It is always helpful (and courteous) to mention how you
    solved
    > your original problem when interacting with this list. This allows you to
    > contribute back to the list, and ultimately the PHP community. :-)
    >
    > Even if the answer someone else gave is sufficient, it is nice to quote
    that
    > answer and give a quick "that worked" for archival purposes. This way when
    > someone references the archive seeking the answer to the same question,
    they
    > can see which answer worked for you (the person they will likely relate to
    the
    > most).
    >
    > And, though it doesn't apply to you in this case, it is nice to thank the
    > person who helped you solve a particular problem. The only motivation for
    > pouring a lot of effort into responding to the questions here is to feel
    like
    > you're helping a lot of people. John Holmes comes to mind as a frequent
    > contributor, as do many others (is there a list?).
    >
    > Thanks for your help.
    >
    > Chris
    >
    > =====
    > Become a better Web developer with the HTTP Developer's Handbook
    > [url]http://httphandbook.org/[/url]
    John Ryan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139