I would like to create a small private application for uploading and downloading my bookmarks at work and at home.
I noticed that IE5 has a very nifty feature called ImportExportFavorites, and decided to
try it out. What the function does, basically, is post a HTML version of the Favorites folder to a specified URL.
However, I ran into problems when I tried to write a PHP script to accept the posted data. I cannot figure out how to handle the data. What I found out from the request is:
- The data is POSTed
- The CONTENT_TYPE is "application/x-www-form-urlencoded"
- The HTTP_USER_AGENT is "PostFavorites"
I also tried to examine the HTTP_POST_VARS, but found that the posted data was trashed somehow. My best guess here is that PHP has problems with the CONTENT_TYPE, but I can't say for sure..
My real question after all this is: Has anyone else tried this ?