asp-classic

Classic ASP use of “SameSite” on cookies [duplicate]

独自空忆成欢 提交于 2020-08-26 10:41:28
问题 This question already has answers here : Adding Same-site; Secure to Cookies in Classic ASP (2 answers) Closed 8 days ago . We're using Classic ASP to construct our cookies via Response.Cookies( " CookieName " ). How would we go about setting "SameSite" to none? 回答1: Try this (you need the URLRewrite module installed). You also need to be using the https protocol ( SameSite only works if Secure is also included, and you can't include Secure without using the https protocol). HttpOnly should

CURL request in classic ASP

二次信任 提交于 2020-08-22 06:39:30
问题 Can someone help me to create classic asp code from the CURL request below? curl -H 'Authorization: Token f2210dacd9c6ccb8133606d94ff8e61d99b477fd' "https://cloud.seafile.com/api2/beshared-repos/" I tried the sample code below, but it didn't work. Dim http: Set http = Server.CreateObject("WinHttp.WinHttpRequest.5.1") Dim url: url = "https://cloud.seafile.com/api2/beshared-repos/" Dim data: data = "token=f2210dacd9c6ccb8133606d94ff8e61d99b477fd" With http Call .Open("GET", url, False) Call

How does the classic asp connection.errors collection actually work?

久未见 提交于 2020-08-19 08:42:31
问题 I am trying to confirm how the actual ADODB.Connection.Errors collection should actually work. My interpretation at the moment is that the connection will hold all the errors for the all the procedures that have been executed on that connection. So I should be able to say on error resume next ... code goes here ... 2 or more command objects execute procedures against the database on the same connection if con.Errors <> 0 then loop through all the Errors objects (1 for each procedure that

How to convert folder to zip. file in asp classic

元气小坏坏 提交于 2020-08-11 05:42:04
问题 Can any one help me in how to convert folder to zip file in classic asp. <% Dim objZip Response.write("new") Set objZip = Server.CreateObject("Scripting.FileSystemObject") Response.write("yahoo") objZip.Pack "C:\inetpub\wwwroot\NewZIp\Images\SMM.JPEG", "C:\inetpub\wwwroot\NewZIp\Images.zip" objZip.Pack "C:\inetpub\wwwroot\NewZIp\Images\IMS.JPEG", "C:\inetpub\wwwroot\NewZIp\Images.zip" Set objZip = Nothing %> I am using this one code for convert folder to zip 回答1: This can be easily done in

Sending mail using classic ASP?

亡梦爱人 提交于 2020-07-30 03:19:11
问题 I am trying to send mail using classic ASP, but my page contain some error that's why when upload the page it shows the error that : 500 Internal Server Error This is the code i am using; <% Dim smtpserver,youremail,yourpassword,ContactUs_Name,ContactUs_Tel,ContactUs_Email Dim ContactUs_Subject,ContactUs_Body,Action,IsError smtpserver = "smtp.gmail.com" youremail = "xxxxx.yyyyyy@gmail.com" yourpassword = "password" Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") ObjSendMail

Web scraping in classic asp [closed]

匆匆过客 提交于 2020-07-24 05:30:07
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question I'm trying to scrape a web page using classic asp. Why, because I have an asp file that I am trying to include in 2 domains and I'd rather not have 2 copies to update. I'm new to the whole web scraping thing and having difficulty finding a "Dummies" tutorial on

Web scraping in classic asp [closed]

ⅰ亾dé卋堺 提交于 2020-07-24 05:29:22
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question I'm trying to scrape a web page using classic asp. Why, because I have an asp file that I am trying to include in 2 domains and I'd rather not have 2 copies to update. I'm new to the whole web scraping thing and having difficulty finding a "Dummies" tutorial on