You are here

url_preload.headers customheader to send base64 string fail

4 posts / 0 new
Last post
argo057
Offline
argo057's picture
Joined: 7 years
Last seen: 6 years
url_preload.headers customheader to send base64 string fail

I want to parser EPG from a website which need to login first.
I use customheader as a base64 string like this:

url_preload.headers {customheader=Authorization=Basic R1RUVihJUCk6ODY3YTFkYWMzMGQyYzYzNjk2YWM3NzZlODY4NTIwYTQ5NDE5ZTkyOQ==}

but Webgrabplus just send "Basic R1RUVihJUCk6ODY3YTFkYWMzMGQyYzYzNjk2YWM3NzZlODY4NTIwYTQ5NDE5ZTkyOQ".

How can I send "==" characters?

argo057
Offline
argo057's picture
Joined: 7 years
Last seen: 6 years

Thank your response.

When I use "%3D%3D" in customheader, I get it in the request packet. It cannot pass the authentication.

"Authorization: Basic R1RUVihJUCk6ODY3YTFkYWMzMGQyYzYzNjk2YWM3NzZlODY4NTIwYTQ5NDE5ZTkyOQ%3D%3D"

Accroding to "APPENDIX E",
preload cannot support modify

argo057
Offline
argo057's picture
Joined: 7 years
Last seen: 6 years

Thank your help.

POST http://gtapi.wowotv.tw/gttv-api_v2/token/get?uuid=
preload request packet ==>

Host: gtapi.wowotv.tw
Accept: */*
Version: 201
Authorization: Basic R1RUVihJUCk6ODY3YTFkYWMzMGQyYzYzNjk2YWM3NzZlODY4NTIwYTQ5NDE5ZTkyOQ==
Proxy-Connection: keep-alive
Accept-Language: zh-Hant-JP;q=1, en-JP;q=0.9
Accept-Encoding: gzip, deflate
Platform: IPhone
IMEI: 9856cf780c45e7f2a9034c3d15ae39c6b8ab8760
Content-Length: 0
User-Agent: NewGttv/2.3 (iPhone; iOS 12.0; Scale/3.00)
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Model: iPhone 6s+

preload response packet <==
{
"data": {
"accessToken": "hKOgY8lWaXowWw8IxtfL3rCD4iLkjNf1",
"expiresIn": 3600000,
"scope": "default"
},
"message": "??Token??",
"status": 200
}

index request packet:
POST http://gtapi.wowotv.tw/gttv-api_v2/program/list

Host: gtapi.wowotv.tw
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Connection: keep-alive
Proxy-Connection: keep-alive
Accept: */*
User-Agent: NewGttv/2.3 (iPhone; iOS 12.0; Scale/3.00)
Accept-Language: zh-Hant-JP;q=1, en-JP;q=0.9
Authorization: Bearer hKOgY8lWaXowWw8IxtfL3rCD4iLkjNf1
Content-Length: 42
--------------------------------------------------------------------
contentId=13787&day=3&startDate=2018-10-03

index response packet <==
{"status":200,"message":"\xe5\x8f\x96\xe5\xbe\x97\xe7\xaf\x80\xe7\x9b\xae\xe8\xa1\xa8\xe6\x88\x90\xe5\x8a\x9f","data":{"dayList"
:[{"date":"2018-10-03","programList":[{"programId":8909293,"name":"\xe6\x9d\xb1\xe6\xa3\xae\xe5\xa4\x9c\xe9\x96\x93\xe6\x96\xb0\
xe8\x81\x9e","reservation":"N","startDateTime":"00:00","endDateTime":"01:00"}........

argo057
Offline
argo057's picture
Joined: 7 years
Last seen: 6 years

Thank you!!!

It is a good idea to use php as an webgrab agent.
And thank your example.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl