packages icon indicating copy to clipboard operation
packages copied to clipboard

ddns-scripts: POST data for some providers

Open NeiroNz opened this issue 7 months ago • 4 comments

Package Name

ddns-scripts

Maintainer

(@chris5560)

OpenWrt Version

25.12.0

OpenWrt Target/Subtarget

generic

Steps to Reproduce

DNS provider API needs POST

Actual Behaviour

Some dns providers uses API which accepts only POST requests with content-type "application/json" or "application/xml". We needs a multiline editor "POST data", content-type can be detected startsWith "{" or "<" symbols, otherwise urlencoded form. Also all fields replacements need be do to that data too.

Confirmation Checklist

  • [x] The package is maintained in this repository.
  • [x] I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
  • [x] I am reporting an issue for OpenWrt, not an unsupported fork.

NeiroNz avatar Apr 12 '26 15:04 NeiroNz

"some" are which exactly?

brada4 avatar Apr 13 '26 09:04 brada4

"some" are which exactly?

https://www.reg.ru/reseller/api2doc

zone/add_alias

NeiroNz avatar Apr 13 '26 14:04 NeiroNz

You can take any json constructing code as an example.... https://github.com/openwrt/packages/blob/29e685e1f852a0f74afc9f22d07f739d01b098b1/net/ddns-scripts/files/usr/lib/ddns/update_pdns.sh#L32

brada4 avatar Apr 13 '26 15:04 brada4

I don't understand what needs to be done here. Is this a feature request or a bug report? Please provide more context

feckert avatar Apr 20 '26 14:04 feckert