Hello All, I am trying to query textual comments data from the youtube api using proc http with the below code. However, i am getting a http error in the log and my request is not getting processed. I have referenced for related documentation why it is failing but other than the description of the error at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, i couldn't figure out the issue. I have tried using my youtube login credentials in the webusername and webpassword parameters but it didnt work. Appreciate your help ! ERROR: java.io.IOException: Server returned HTTP response code: 415 for URL: http://gdata.youtube.com/feeds/api/videos/pzI4D6dyp_o/comments?v=2&max-results=50&start-index=1 Below is the code i used, this is similar to the code that is available at http://sww.sas.com/toolpool/pool/Twitter_Web_Application/index.html which was used for retrieving twitter data. GOPTIONS ACCESSIBLE; /* this is where we will store the HTML output */ filename odsout "C:\Inetpub\wwwroot\youtube"; ods listing close; /*The code to connect to twitter using SAS looks like this: */ filename REQUEST "C:\temp\blank.txt"; /*make sure to create this blank txt file before running the code*/ filename SchOut "c:\temp\Video_Meta.xml"; /* url is the location we pass to proc http */ %let url = "http://gdata.youtube.com/feeds/api/videos/pzI4D6dyp_o/comments?v=2&max-results=50&start-index=1"; %put &url; /*connect to youtube */ proc http in=REQUEST out=SchOut url=&url method="get" proxyhost="inetgw.unx.sas.com" proxyport=80 webusername='' /* not required here */ webpassword='' /* not required here */ ; run; Thanks, Murali
... View more