title: save http://maps.googleapis.com/maps/api/streetview?vars image with php curl, fsockopen or fopen
body: <p>For an application i'me building i would like to use a streetview image from <a href="http://maps.googleapis.com/maps/api/streetview?location=" rel="nofollow">http://maps.googleapis.com/maps/api/streetview?location=</a><em>myaddressvariable</em>&amp;size=<em>mysizes</em>&amp;key=<em>myapikey</em>&amp;<em>restofvars...</em></p>
  
  <p>this works fine when getting this image trought a normal browser request.</p>
  
  <p>But i'd really like to save this image using php -> cUrl or fsockopen or fopen.
  strange thing is that regardless the php function i use the request times out and i get a 400 error from google. </p>
  
  <p>Is this a permission issue or am i doing something wrong?</p>
  
  <p>So what is the best way to save an image from google streetview using a server side request with php?</p>