(video uploads) and I'm using the code below. Sometimes the request is
successful but most of times I get (if I sniff with WireShark) a http
303 SeeOther response. How could I manage this ?
Code:
YouTubeRequestSettings ytSettings = new
YouTubeRequestSettings(MyAppName, YouTubeKey);
YouTubeRequest f = new YouTubeRequest(ytSettings);
NetworkCredential nc = new NetworkCredential(user,
pass,domain);
WebProxy prx = new WebProxy(proxyurl);
prx.Credentials = nc;
f.Proxy = prx;
Feed<Video> feed = f.GetVideoFeed(YTUsername);
Wireshark Log
GET http://gdata.youtube.com/feeds/api/users/ferroviedellostato/uploads
HTTP/1.1
Content-Type: application/atom+xml; charset=UTF-8
User-Agent: G-<appname>/GDataGAuthRequestFactory-CS-Version=1.8.0.0--
IEnumerable
X-GData-Key: key=<MyKey>
GData-Version: 2.0
Host: gdata.youtube.com
Proxy-Connection: Keep-Alive
HTTP/1.1 303 See Other
Location: fgtauth?021df247ad01ea8c
Proxy-Connection: close
Content-Length: 200
Cache-Control: no-cache
Content-Type: text/html
<html><head><title>Firewall Authentication</title></head><body>Try
next authentication method. <a href="fgtauth?021df247ad01ea8c">Click
here</a> to trigger firewall authentication again.</body></html>
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment