我的DDNS服务是否在中国使用PowerShell脚本?
如果好人为我测试,我会非常高兴。对不起我的坏中国人!
https://now-dns.com
https://now-dns.com/client/updater.ps1
谢谢
1 Answers
your script works well:
PS> $hostname = “pstips.dnsup.net” PS> $user = “mosser@pstips.net” PS> $pass = “pstips.net” PS> PS> $url = “https://now-dns.com/update?hostname=${hostname}” PS> PS> $pair = “${user}:${pass}” PS> $bytes = [System.Text.Encoding]::ASCII.GetBytes($pair) PS> $base64 = [System.Convert]::ToBase64String($bytes) PS> $basicAuthValue = “Basic $base64” PS> $headers = @{ Authorization = $basicAuthValue } PS> Invoke-WebRequest -uri $url -Headers $headers StatusCode : 200 StatusDescription : OK Content : good RawContent : HTTP/1.1 200 OK Pragma: no-cache Connection: close Content-Length: 4 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Content-Type: text/html; charset=UTF-8 Date: We… Forms : {} Headers : {[Pragma, no-cache], [Connection, close], [Content-Length, 4], [Cache-Control, no-store, no-cache, must-revalidate, post-check=0, pre-check=0]…} Images : {} InputFields : {} Links : {} ParsedHtml : mshtml.HTMLDocumentClass RawContentLength : 4
非常感谢你!