title: Adding links to Delicious with PHP file_get_contents
body: <p>I know this can be done via curl, but am giving this as an option if the client server does not have curl. (jic)</p>
  
  <p>I am doing this , and this works - </p>
  
  <pre><code>$del_url = 'https:// { $user } ':' { $pwd } @api.del.icio.us/v1/posts/add?url='.urlencode( $post_link ).'&amp;description='.urlencode( $post_excerpt );
  
  $data = file_get_contents( $del_url );
  </code></pre>
  
  <p>but when i use stream_context_create, it does NOT work, and gives me a "access denied" and i cant seem to understand why.</p>
  
  <pre><code>$context = stream_context_create(array(
  'http' =&gt; array(
  'method'    =&gt; 'GET',
  'header'    =&gt; "Authorization: Basic " . base64_encode( $user.':'.$pwd ). "\r\nConnection: close\r\n",
  'timeout'    =&gt; 60
  )
  ));
  $del_url = 'https://api.del.icio.us/v1/posts/add?url='.urlencode( $post_link ).'&amp;description='.urlencode( $post_excerpt );
  
  $data = file_get_contents( $del_url, false, $context );
  </code></pre>
  
  <p>i do not wish to use the clear text password in URL, .... so i want to use stream_context_create</p>
  
  <p>If someone can point at what im missing.</p>