My Second Question...........

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

    #1

    My Second Question...........

    Does anybody know a function to send a header to a www SERVER?, specifically
    the referer field?


  • Pedro Graca

    #2
    Re: My Second Question....... ....

    Joe Cybernet wrote:[color=blue]
    > Does anybody know a function to send a header to a www SERVER?, specifically
    > the referer field?[/color]




    or you could fsockopen() and do it 'by hand'
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--

    Comment

    • CountScubula

      #3
      Re: My Second Question....... ....

      "Joe Cybernet" <no@no.ie> wrote in message
      news:KImLb.4125 $HR.8436@news.i ndigo.ie...[color=blue]
      > Does anybody know a function to send a header to a www SERVER?,[/color]
      specifically[color=blue]
      > the referer field?
      >
      >[/color]

      This lets you retrieve anything from http://... a file. an image, etc...



      --
      Mike Bradley
      http://www.gzentools.com -- free online php tools


      Comment

      • dr. zoidberg

        #4
        Re: My Second Question....... ....

        Joe Cybernet wrote:
        [color=blue]
        > Does anybody know a function to send a header to a www SERVER?, specifically
        > the referer field?[/color]

        Please use descriptive subjects.

        Comment

        • Joe Cybernet

          #5
          Re: My Second Question....... ....

          that doesnt work very well. the resulting data includes the header and even
          when I strip the header the file is still a invalid JPEG file. It must be
          something to do with the chunked transfer. Ah well at least you tried


          Comment

          • CountScubula

            #6
            Re: My Second Question....... ....

            "Joe Cybernet" <no@no.ie> wrote in message
            news:3IqLb.4148 $HR.8316@news.i ndigo.ie...[color=blue]
            > that doesnt work very well. the resulting data includes the header and[/color]
            even[color=blue]
            > when I strip the header the file is still a invalid JPEG file. It must be
            > something to do with the chunked transfer. Ah well at least you tried
            >
            >[/color]

            Ok, so unchunk it, that piece of code was to get you started.

            Why not pose the question:

            Will somebody please write me the ENTIRE script to retieve via http were I
            can.......,I do not want to code anything myself.

            --
            Mike Bradley
            http://www.gzentools.com -- free online php tools


            Comment

            • Chung Leong

              #7
              Re: My Second Question....... ....

              Strange that the server would chunk the data when chunked isn't specified in
              Accept-Encoding. Try changing the User-Agent to something else. Perhaps the
              server using that to determine whether to chunk or not.

              Uzytkownik "Joe Cybernet" <no@no.ie> napisal w wiadomosci
              news:3IqLb.4148 $HR.8316@news.i ndigo.ie...[color=blue]
              > that doesnt work very well. the resulting data includes the header and[/color]
              even[color=blue]
              > when I strip the header the file is still a invalid JPEG file. It must be
              > something to do with the chunked transfer. Ah well at least you tried
              >
              >[/color]


              Comment

              Working...