●過去ログよめない? どうしてだろう。

1偽FOX ★NGNG
●で過去ログを読めるように対応しました。(pinkも)

読めないのがあったら教えてね、
でもあん神経質にならないでね、

http://qb5.2ch.net/test/read.cgi/operate/1366640919/87
87 名前:C ◆Odemonkey. :2013/09/09(月) 18:05:06.97 ID:7z3sJk2k0
Hello.

2ch and BBSPINK need an API update.

Old method (http://www.monazilla.org/index.php?e=205):
Login and password -> futen.cgi
futen.cgi -> SID
sid -> offlaw.cgi
offlaw.cgi -> archived data

New method:
Login and password -> futen.cgi
futen.cgi -> SID
sid -> rokka.bbspink.com / rokka.2ch.net
rokka.bbspink.com -> archived data

Example of new method:
https://2chv.tora3.net/futen.cgi?ID=example@email.com&PW=password

http://rokka.bbspink.com/pele/erobbs/1285357421/l20&raw=0.0
&sid=Monazilla/2.00:12223846K50697i70444U70513W70855R62561r14453l31230a39959z09078s42283j72384r19027Z68108I83536P4017Z65214o82705K67659H96946O97878w74570z33319W40333l47343X88892X39504593H46382I8370

http://rokka.<SITENAME>.<COM or NET>/<SERVER NAME>/<BOARD NAME>/<DAT NUMBER>/<OPTIONS>&amp;raw=0.0&amp;sid=<SID>

Sid length = 192 characters

Currently BBSPINK archived dat is enabled. 2CH archived dat is disabled. After a couple of days, then 2CH archived dat will be enabled.

Thank you. If you have any questions, please ask me.

http://qb5.2ch.net/test/read.cgi/operate/1366640919/88
88 名前:C ◆Odemonkey. :2013/09/09(月) 18:05:43.77 ID:7z3sJk2k0
>>87
See this .txt file for a better example:
http://stream.bbspink.com/update.txt


http://qb5.2ch.net/test/read.cgi/operate/1366640919/89
89 名前:C ◆Odemonkey. :2013/09/09(月) 18:25:14.46 ID:7z3sJk2k0
>>88
Error codes:
inputError = "Error 8008135"
authenticationError = "Error 69"
urlError = "Error 666"
timeLimitError = "Error 420"


http://qb5.2ch.net/test/read.cgi/operate/1366640919/90
90 名前:C ◆Odemonkey. :2013/09/09(月) 18:26:41.58 ID:7z3sJk2k0
>>89
Here is a SID that you can use to test it. This SID has a 24 hour timelimit.

Monazilla/2.00:25935616r53147p84204b75968h81220T66936o94218j17200g83439j83608B50593Q75854Y17092g70978p91921w4187G71739V85010r79604o03161v90183d80265g49834d43733S44483E92467X47007043o58152p8779


http://qb5.2ch.net/test/read.cgi/operate/1366640919/91
91 名前:C ◆Odemonkey. :2013/09/09(月) 19:16:43.35 ID:7z3sJk2k0
Please use the SID from post 90 to test.

http://qb5.2ch.net/test/read.cgi/operate/1366640919/107
107 名前:水玉(Mizutama) ◆qHK1vdR8FRIm :2013/09/10(火) 02:05:17.63 ID:lT7zOihZ0
>>87-91
Hi, I'm a auxiliary developer for 2channel browser 'twintail'.
I've examed new nethod to get past-log from rokka.bbspink.com then I found some minor problems.
1) rokka does not receive UrlEncoded SID and returns 'Error69'.
Usually parameters of QueryString should be UrlEncoded, Maru did.
So most of 2channel browsers send UrlEncoded SID, then it will be failed.
But rokka returns Error69 which is authentication eroor, developers would confuse.
Please make it to allow receive UrlEndoed SID.
2) The request URL is not standard format.
Standard QueryString format is http://server/?<1st key>=<1sr parm>&<2nd key>=<2nd parm>....
But rokka does not use '?'. This makes also developers confusing.
Please make it to allow receive standard QueryString.
3) On received dat, 1st line is "rokka.com\n'.
dats from 2channel has no such line. This makes imcompatibility fo dats.
Please eliminate it.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/108
108 名前:水玉(Mizutama) ◆qHK1vdR8FRIm :2013/09/10(火) 02:58:09.12 ID:lT7zOihZ0
>>107
One more problem,
4) rokka will never return GZiped content even the url specifies 'raw=0.0' which means requesting dat with GZip compressed.
The response header did not contain 'GZip' so http clients should process the content as not GZiped,
but some browser assumes content is GZiped 'cause the url has 'raw=0.0'.
Please maki it working correctly.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/109
109 名前:xerxes.maido3.net:2013/09/10(火) 07:47:58.33 ID:Ns+CbHYH0
>>107
おはようございます。

http://qb5.2ch.net/test/read.cgi/operate/1366640919/111
111 名前:C ◆Odemonkey. :2013/09/10(火) 09:18:05.24 ID:XOw7rlKd0
>>107-108
Thank you. I will fix these problems today.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/112
112 名前:動け動けウゴウゴ2ちゃんねる:2013/09/10(火) 14:46:52.80 ID:WSo0Q+by0
>>111
Apparently <OPTIONS> doesn't work.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/113
113 名前:C ◆Odemonkey. :2013/09/10(火) 16:11:41.53 ID:XOw7rlKd0
>>107
>>108
1) Rokka can now receive encoded URLs
2) The request URL is now standard format.
3) I removed "rokka.bbspink.net" from the first line
4) It will now properly return gzipped pages if raw=0.0 is set.

This is the format for URLS now:
http://rokka.bbspink.com/<server>/<board>/<post>/<options>?raw=0.0&amp;sid=<SID>

>>112
Options work correctly. Some standard options:
l50
25-35
-45
13-
etc

If anyone has any more questions or suggestions for improvement, please tell me right away.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/114
114 名前:C ◆Odemonkey. :2013/09/10(火) 16:14:30.15 ID:XOw7rlKd0
I updated http://stream.bbspink.com/update.txt
It now has the correct format for rokka requests.

Here is another test SID you can use for testing. It will expire in 5 days.

Monazilla/2.00:4373298c8948z3710L4758p6811a4278j8170k1299y43207q2897a2811s45242k42852u6725y95346g6820L6383H0297o62124l2450n64672G6826N2472L7957N2508x9686O8904U4108793x6855v1216b1499s6811a2729r

http://qb5.2ch.net/test/read.cgi/operate/1366640919/115
115 名前:水玉(Mizutama) ◆qHK1vdR8FRIm :2013/09/10(火) 18:40:14.20 ID:lT7zOihZ0
>>113-114
1)2)
http://rokka.bbspink.com/pele/erobbs/1285357421/?raw=0.0&
sid=Monazilla%2f2.00%3a4373298c8948z3710L4758p6811a4278j8170k1299y43207q2897a2811s45242k42852u6725y95346g6820L6383H0297o62124l2450n64672G6826N2472L7957N2508x9686O8904U4108793x6855v1216b1499s6811a2729r
UrlEncoded and standard, Error69. should be accepted

http://rokka.bbspink.com/pele/erobbs/1285357421/?raw=0.0&
sid=Monazilla/2.00:4373298c8948z3710L4758p6811a4278j8170k1299y43207q2897a2811s45242k42852u6725y95346g6820L6383H0297o62124l2450n64672G6826N2472L7957N2508x9686O8904U4108793x6855v1216b1499s6811a2729r
non-UrlEncoded and standard, success

http://rokka.bbspink.com/pele/erobbs/1285357421/&raw=0.0&
sid=Monazilla/2.00:4373298c8948z3710L4758p6811a4278j8170k1299y43207q2897a2811s45242k42852u6725y95346g6820L6383H0297o62124l2450n64672G6826N2472L7957N2508x9686O8904U4108793x6855v1216b1499s6811a2729r
non-UrlEncoded and non-standard, Error69. could be accepted because Maru could accept this non-standard and some browser would send this.

http://rokka.bbspink.com/pele/erobbs/1285357421/&raw=0.0&
sid=Monazilla%2f2.00%3a4373298c8948z3710L4758p6811a4278j8170k1299y43207q2897a2811s45242k42852u6725y95346g6820L6383H0297o62124l2450n64672G6826N2472L7957N2508x9686O8904U4108793x6855v1216b1499s6811a2729r
UrlEncoded and non-standard, Error69. could be accepted because Maru could accept this non-standard and some browser would send this.

Please make it accept all of above.

3) Fine. But it is a little hard to branch error condition.
If the server responded with follwoing status code, it made (me) clear.
inputError = "Error 8008135"    404 Not Found    what does "input" mean ?
authenticationError = "Error 69"  401 Unauthorized  this should be returned only when SID is invalid
                     or 400 Bad Request  because when 401 has been received, IE will open athentication dialog(not sure)
urlError = "Error 666"         400 Bad Request  this should be returned in case of 1)2)
timeLimitError = "Error 420"     401 Unauthorized  if Error420 means SID expired
If there are some difficulties to send status code in response header, you can use 1st line for indiccating those errors,
and 'Success' which is fixed static string to make detection easily.
I don't have any raw dat response from Maru but I found my old program-code skiped 1st line.
Did Maru return error or success code in 1st line? It can't know now, either.

4) Fine.
With 'raw=0.0' , response header contains "gzip" and content is gzipped correctly.
Without 'raw=0.0' , response header does not contains "gzip" and content is plane text.

>>299-303
備忘録

http://qb5.2ch.net/test/read.cgi/operate/1366640919/116
116 名前:動け動けウゴウゴ2ちゃんねる:2013/09/10(火) 20:00:32.38 ID:WSo0Q+by0
>>113
I'm sorry. I made a mistake.
I expected Rokka to return data beginning with 20 when a browser requested as "20-".
But it returned data beginning with post 1.
Please don't make the data contain post 1 when the option is specified unless it is necessary.
Although post 1 is useful for humans, it is harmful for programs.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/117
117 名前:C ◆Odemonkey. :2013/09/10(火) 21:56:16.67 ID:XOw7rlKd0
>>115
>>116
Thank you for your advice. I will fix Rokka now. Please wait an hour or two then try again.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/118
118 名前:C ◆Odemonkey. :2013/09/10(火) 22:11:45.14 ID:XOw7rlKd0
>>115
1. UrlEncoded and standard, Error69. should be accepted
I made a mistake and forgot to call the urlDecode function. It is fixed now and working correctly.

2. non-UrlEncoded and standard, success
It works

3 and 4
I dont think the non-standard URL is good. The '?' is better than the '&'.

Old maru returned a success code on first line. Should I add this?

>>116
Please have a look at this page: http://pele.bbspink.com/test/read.cgi/ogefin/1181900883/20-
Using '20-' will return the first post and every post after the #20.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/119
119 名前:水玉(Mizutama) ◆qHK1vdR8FRIm :2013/09/10(火) 22:39:26.41 ID:lT7zOihZ0
>>118
1. Confirmed.
2. Confirmed.
3. It's OK. We should comply with standard.

> Old maru returned a success code on first line. Should I add this?
Now I got it why my old code skipped 1st line.
Let's define and declare usage of 1st line of archieved dat;
1st line indicates processed status of the server.
"Success"  - The process has successfuly done. Following lines are achieved message with dat format(name<>email<>datetime<>body<>[title]).
"Error XXX" - The process has not succeeded. XXX is error code.

> If the server responded with follwoing status code, it made (me) clear.
> inputError = "Error 8008135"    404 Not Found    what does "input" mean ?
> :
I mean '404 not found''401 Unauthorized' are status field in server response header, not in response text.
If confuguring server were difficult, forget abut it and return original (your 1st issue) error text.
Because now we can use 1st line of response text to indicate status. It's not nessesary to use status field in response header.

http://qb5.2ch.net/test/read.cgi/operate/1366640919/120
120 名前:C ◆Odemonkey. :2013/09/10(火) 23:13:10.83 ID:XOw7rlKd0
>>119

>If confuguring server were difficult, forget abut it and return original (your 1st issue) error text.
Okay!

>"Success"  - The process has successfuly done. Following lines are achieved message with dat format(name<>email<>datetime<>body<>[title]).
>"Error XXX" - The process has not succeeded. XXX is error code.
Okay!


If there are any more suggestions, please tell me. I can fix it immediately.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/121
121 名前:C ◆Odemonkey. :2013/09/10(火) 23:18:48.51 ID:XOw7rlKd0
I have an error with the "Success". Please wait, I will fix it.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/122
122 名前:C ◆Odemonkey. :2013/09/10(火) 23:21:54.52 ID:XOw7rlKd0
Okay, the "success" is fixed. Please try now.


http://qb5.2ch.net/test/read.cgi/operate/1366640919/123
123 名前:水玉(Mizutama) ◆qHK1vdR8FRIm :2013/09/10(火) 23:25:01.23 ID:lT7zOihZ0
okie-dokie


http://qb5.2ch.net/test/read.cgi/operate/1366640919/124
124 名前:C ◆Odemonkey. :2013/09/10(火) 23:43:15.38 ID:XOw7rlKd0
>>123
Approximately when will your app update to work with the new Rokka system?


http://qb5.2ch.net/test/read.cgi/operate/1366640919/125
125 名前:水玉(Mizutama) ◆qHK1vdR8FRIm :2013/09/11(水) 00:00:14.04 ID:BMs3arUN0
>>120-122
'Success' confirmed.
'Error 699' from http://rokka.bbspink.com/pele/erobbs/1285357421/&raw=0.0&sid=......
699? not 666??
'Error 699' from http://rokka.bbspink.com/pele/erobbs/1285357421/&raw=0.0&sid=Monazilla/3.00:437... could be 69
'Error 699' from http://rokka.bbspink.com/pele/erobbs/1285357421/&raw=0.0&sid=Monazilla/2.00:123456789048z3710L4... should be 69
'Error 699' from http://rokka.bbspink.com/pele/erobbs/1285357421/&raw=0.0&sid= sid post at 90 should be 420

>>124
I am not a author of the browser, just help debugging the browser.
After this session, I'll tell her which code should be changed.
To do this, I'll published my customized version for the evidence after this session.
I guss public version will published a couple of days later after 2chan system has changed to Rokka system.

新着レスの表示
レスを投稿する