我想在我每次利用谷歌应用文字提出请求时,自动填写verification token
和Cookie
? 我将Pin列入 http://web/a>,并将结果摘回谷歌,我使用了以下刀:
function submitForm() {
var url = "https://taxdelinquent.cookcountyclerkil.gov/";
var formData = {
__RequestVerificationToken : q5mCwHyTYkN3HgYB3NZXS-JvsGLfvH5bmRtpJKPWTmml_Oskif_gIW3vnU8jNbhZC_XW2xlmCyGqHAhISUjtX-zbZdoIQBiOulF44suHU1c1 ,
Pin : 13-30-300-016-0000
};
var encodedData = Object.keys(formData).map(function(key) {
return encodeURIComponent(key) + = + encodeURIComponent(formData[key]);
}).join( & );
var headers = {
"Accept": "text/html,application/xhtml",
"Cookie": "__RequestVerificationToken=wOpZrdbvOL7wiQJcqlWYSAlsLIBc5yImjoHSGqSixBZewlt2FZgNLQXh9xH5APz2_bCkcgxPmckSipc1sRExCbLEOYcmCRrWTqNhX8mVtqk1; AWSALB=KsF6dcBJ9rQjYyLrj1veloVO595F9XgoQyhW2wcXz8AC6XuxVBcklT3NdYfQ8p32s2w/pzyVw5w7QcJ7NBnAhb3LcpBoWAyN6hwsXjzXMvr4fZhbEZ4KAMXHjbU8; AWSALBCORS=KsF6dcBJ9rQjYyLrj1veloVO595F9XgoQyhW2wcXz8AC6XuxVBcklT3NdYfQ8p32s2w/pzyVw5w7QcJ7NBnAhb3LcpBoWAyN6hwsXjzXMvr4fZhbEZ4KAMXHjbU8"
};
var options = {
"method": "post", // or "get" depending on your needs
"headers": headers,
"payload": encodedData
};
var response = UrlFetchApp.fetch(url, options).getContentText();
}
它生成所需数据。 如欲上inspect content
of this website,请参看有效载荷:
http://www.ohchr.org。 looks:
但 我相信,当这一“明星号”和“明星号”的交接期结束时,书面文本将无法获取数据,我需要你指导,才能解决。 谢谢你。