Проблемы с воссозданием заголовков Http из более старого приложения - PullRequest
0 голосов
/ 10 июля 2020
• 1000 то же самое, что и унаследованное веб-приложение, которое я пытаюсь воссоздать, с двумя исключениями.

Предыстория: я воссоздаю веб-приложение Fla sh в Vue. js. Я использую тот же бэкэнд без изменений, это Perl, скрипты cgi, как правило, я могу использовать ax ios для общения с бэкэнд-скриптами без проблем.

Текущий Fla sh Интерфейс: когда я загружаю файл с помощью текущего приложения fla sh, мой заголовок выглядит так:

Old Header

Note the highlighted text at the bottom.

Replacement Vue Frontend: I see a couple differences with my new header, I don't have the Content-Type: application/octet-stream bit directly underneath the filedata part of the header. And the end of the header is "--" which is the convention, I am guessing the old application used some outdated header ending I can't find and doesn't know how to handle mine. Please help I could not find anything on the Google. I also note the new header has "WebKitFormBoundarys" not sure if that could cause an issue with some old header standards or something.

Новый заголовок

1 Ответ

0 голосов
/ 14 июля 2020

Проблемы были связаны с устаревшими Perl пакетами, после того как они были обновлены до серверного скрипта, который правильно распознал заголовок.

...