mirror of
https://github.com/majd/ipatool
synced 2026-11-26 17:27:52 +08:00
login: increment 'attempt' while following redirects Apple has introduced some dynamic GET parameters into their redirects, forcing us to use the main domain ( no `p71-` and such prefixes ) to obtain those parameters. However, when following such redirects, we shall also increment the `attempt` parameter (something that was hard-coded before).
13 lines
250 B
Go
13 lines
250 B
Go
package http
|
|
|
|
type ResponseFormat string
|
|
|
|
const (
|
|
ResponseFormatJSON ResponseFormat = "json"
|
|
ResponseFormatXML ResponseFormat = "xml"
|
|
)
|
|
|
|
const (
|
|
DefaultUserAgent = "Configurator/2.17 (Macintosh; OS X 15.2; 24C5089c) AppleWebKit/0620.1.16.11.6"
|
|
)
|