Sending http header via php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sending http header via php

    Hey guys how would you send a http header via php to make another site think that your browser is something different like a nokia 6600 for the purpose of file_get_contents(); or other functions for scanning websites etc ?

    #2
    cant by get file contents :P
    use curl

    Comment


      #3
      Thanks for the reply

      what would the curl function be to send a http header to another page ?
      i just started learning php about 2 months ago so i have no idea how to do anything in curl

      Comment


        #4
        a nice curl tutorial- cURL - Tutorial
        Last edited by firemax; 30.09.10, 10:38.

        Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader
        PHP Tutorials: How to Secure Your PHP Script (PHP SECURITY)
        Want to Develop/Edit your WAP/Web Site? Add me to Gtalk (gmail) 'lakshan1989' or PM me.

        Comment


          #5
          thanks i will have a look through it as soon as i get a chance

          Comment


            #6
            search for a curl downloader class ,u will find it easuly

            Comment


              #7
              u can use Snoopy class it acts like a web proxy, u can modify the header, referer, proxy, even the user agent to grab website contents, its easy to use.

              Comment

              Working...
              X