Probably a bit late. But this explains the authentication in classic asp
rss_url= "https://www.google.com/accounts/ClientLogin" Set xml = server.Createobject("MSXML2.ServerXMLHTTP") xml.open "POST", rss_url, False xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded " Postdata="accountType"&"="&"GOOGLE" &"&" Postdata=Postdata+Server.URLEncode("Email")&"="&Server.URLEncode("[email protected]")&"&" Postdata=Postdata+Server.URLEncode("Passwd")&"="&Server.URLEncode("yourpassword")&"&" Postdata=Postdata+Server.URLEncode("service")&"="&Server.URLEncode("lh2")&"&" Postdata=Postdata+Server.URLEncode("source")&"="&Server.URLEncode("mytest") xml.send (postdata) response.write xml.responsetex googleAuth = Split(xml.Responsetext,"Auth=")(1) 'Now you have a variable with the authentiaction token you can do stuff and pass that token value in the requestheader rss_url= "https://picasaweb.google.com/data/feed/api/user/43431/albumid/431431" Set xml = server.Createobject("MSXML2.ServerXMLHTTP") xml.open "POST", rss_url, False xml.setRequestHeader "Content-Type", "image/jpeg" xml.setRequestHeader "Content-Length", "47899" xml.setRequestHeader "GData-Version", "2" xml.setRequestHeader "Authorization", "GoogleLogin auth=" + googleAuth xml.send objfile response.write xml.responseText ''Thing i can't get working is turning the image to binary 'still working on that. On Tuesday, May 24, 2011 7:43:48 AM UTC+10, Astralis wrote: > > Can someone provide more details on the Authorization section of this > script? How to do it? -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-picasa-data-api/-/_9EK4bmTfaUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.
