UserAgent and Referer Blank When Plugin Downloads a File
-
Another question related to my XML parsing plugin. The plugin copies an XML file from a remote server to my server every hour and then parses it from the local copy. I’ve been in close contact with the owner of the site I’m getting the XML from (I want to be sure he approves of whatever I’m doing with his work) he says that the UserAgent and Referer fields in his logs are coming in as blanks when I download the XML. Here’s a sample (see the last two fields with the values “-“):
xxx.xxx.xxx.xxx [11/Sep/2006:00:00:34 -0700] “GET /mlb/standings.xml HTTP/1.0” 200 51482 “-” “-“He’d like, if possible, for me to put something in those fields. How would I do that?
I’m using PHPs copy command to download the file. I’m open to other methods if it will help the site owner get what he wants for UserAgent and Referer.Thanks.
- The topic ‘UserAgent and Referer Blank When Plugin Downloads a File’ is closed to new replies.