Skip to content

Instantly share code, notes, and snippets.

@wangzi1325
wangzi1325 / cloudflare-worker-proxy.js
Created September 10, 2024 08:47 — forked from Chapoly1305/cloudflare-worker-proxy.js
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@wangzi1325
wangzi1325 / appium.log
Created December 26, 2018 02:27
appium.log
[info] [Appium] Welcome to Appium v1.10.0
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> GET /wd/hub/sessions
[info] [HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getSessions() with args: []
[debug] [GENERIC] Responding to client with driver.getSessions() result: []
[info] [HTTP] <-- GET /wd/hub/sessions 200 7 ms - 40
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"autoAcceptAlerts":true,"autoWebview":false,"automationName":"XCUITest","bundleId":"com.*.app-study-iPadTest","deviceName":"iPad","newCommandTimeout":1800,"noReset":true,"platformName":"ios","showIOSLog":true,"showXCodeLog":true,"udid":"de1f0f81a336352a6bdbd9af3e113f2a8e693a37","connectHardwareKeyboard":true}}
[debug] [MJSONWP] Call
@wangzi1325
wangzi1325 / appium.log
Created December 25, 2018 02:23
appium.log
[35m[Appium] Creating new XCUITestDriver (v2.84.0) session
[Appium] Capabilities:
[Appium] noReset: true
[Appium] autoLaunch: true
[Appium] loggingPrefs: {
[Appium] safariConsole: ALL
[Appium] safariNetwork: ALL
[Appium] }
[Appium] platformName: ios
[Appium] autoAcceptAlerts: true
[HTTP] <-- POST /wd/hub/session/db38ba8b-2511-47d2-8017-fe9d5b5889be/element/31000000-0000-0000-2501-000000000000/click 200 1828 ms - 118
[HTTP]
[HTTP] --> GET /wd/hub/session/db38ba8b-2511-47d2-8017-fe9d5b5889be/source
[HTTP] {}
[MJSONWP] Calling AppiumDriver.getPageSource() with args: ["db38ba8b-2511-47d2-8017-fe9d5b5889be"]
[XCUITest] Executing command 'getPageSource'
[JSONWP Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/DFB12117-1CAB-428F-8AC8-2205A321B7B0/source] with no body
[JSONWP Proxy] Got response with status 200: "{\n \"sessionId\" : \"DFB12117-1CAB-428F-8AC8-2205A321B7B0\",\n \"value\" : \"\\n\\n \\n \\n \\n
[MJSONWP] Responding to client with driver.getPageSource() result: "\n \n \n \n \n \n
[HTTP] <-- GET /wd/hub/session/db38ba8b-2511-47d2-8017-fe9d5b5889be/source 200 4006 ms - 7138