Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何在youtube API v3中通过经典asp传递xmlHttp_Asp.net - Fatal编程技术网

Asp.net 如何在youtube API v3中通过经典asp传递xmlHttp

Asp.net 如何在youtube API v3中通过经典asp传递xmlHttp,asp.net,Asp.net,如果xmlHttp.Status>=400且xmlHttp.Status Set xmlHttp = CreateObject("MSXML2.ServerXMLHTTP") URLString = "https://www.googleapis.com" Call xmlHttp.open("POST", URLString, False) Call xmlHttp.setRequestHeader("POST", "/upload/youtube/v3/videos?uploadType=r

如果xmlHttp.Status>=400且xmlHttp.Status
Set xmlHttp = CreateObject("MSXML2.ServerXMLHTTP")
URLString = "https://www.googleapis.com"
Call xmlHttp.open("POST", URLString, False)
Call xmlHttp.setRequestHeader("POST", "/upload/youtube/v3/videos?uploadType=resumable&part=snippet%2status%2contentDetails HTTP/1.1")
Call xmlHttp.setRequestHeader("Host", "www.googleapis.com")
Call xmlHttp.setRequestHeader("Authorization", "Bearer "& ACCESS_TOKEN)
Call xmlHttp.setRequestHeader("Content-Length", Len(jsonString))
Call xmlHttp.setRequestHeader("Content-Type", "application/json; charset=UTF-8")
Call xmlHttp.setRequestHeader("X-Upload-Content-Length", 2000)
Call xmlHttp.setRequestHeader("X-Upload-Content-Type", "video/*")
Call xmlHttp.Send(jsonString)
        POST /upload/youtube/v3/videos?uploadType=resumable&part=snippet,status,contentDetails HTTP/1.1
Host: www.googleapis.com
Authorization: Bearer AUTH_TOKEN
Content-Length: 278
Content-Type: application/json; charset=UTF-8
X-Upload-Content-Length: 3000000
X-Upload-Content-Type: video/*
{
  "snippet": {
    "title": "My video title",
    "description": "This is a description of my video",
    "tags": ["cool", "video", "more keywords"],
    "categoryId": 22
  },
  "status": {
    "privacyStatus": "public",
    "embeddable": True,
    "license": "youtube"
  }
}