Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Invalid protocol version in response? What does it mean?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
fpsockets error: 10047
by
rvk
[
Today
at 11:54:24 am]
Struggling with Orthello/...
by
Dzandaa
[
Today
at 11:48:43 am]
Avoid system units debugg...
by
Martin_fr
[
Today
at 11:19:37 am]
[SOLVED] progress dialog ...
by
Phoenix
[
Today
at 11:14:23 am]
Hello everyone!
by
MarsvinEvini
[
Today
at 10:22:00 am]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[
Today
at 10:05:28 am]
I cannot save an unit on ...
by
Zvoni
[
Today
at 09:06:05 am]
Mapping Images Like Odome...
by
circular
[
Today
at 08:58:33 am]
Matching video to form
by
paweld
[
Today
at 08:44:46 am]
Introducing PasBuild 1.0....
by
Thaddy
[
Today
at 08:16:53 am]
Form adjusting to screen ...
by
RickSpink
[
Today
at 08:11:59 am]
Amigo programming languag...
by
paxscript
[
Today
at 04:06:34 am]
Feature better than a new...
by
TBMan
[
Today
at 03:56:13 am]
Any way to exclude terms ...
by
n7800
[
Today
at 12:59:05 am]
Just Curious: When has an...
by
n7800
[
Today
at 12:15:00 am]
Detect orphaned procedure...
by
Martin_fr
[December 09, 2025, 11:37:51 pm]
modern main menu
by
n7800
[December 09, 2025, 10:23:04 pm]
Is FPGUI still active?
by
Fred vS
[December 09, 2025, 09:29:08 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[December 09, 2025, 08:35:41 pm]
Hints in TTrayIcon
by
avra
[December 09, 2025, 07:01:02 pm]
Problem with TSQLQuery
by
sch61
[December 09, 2025, 05:15:38 pm]
What are some good modern...
by
sanric
[December 09, 2025, 04:46:09 pm]
First PythonForLazarus De...
by
fozkan
[December 09, 2025, 04:20:56 pm]
problem with zquery
by
Gebo
[December 09, 2025, 02:59:47 pm]
مشكلة في تنفيذ كودsql مع ...
by
Gebo
[December 09, 2025, 02:01:19 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Invalid protocol version in response? What does it mean? (Read 4894 times)
vonskie
Full Member
Posts: 186
Invalid protocol version in response? What does it mean?
«
on:
September 08, 2017, 05:08:02 pm »
9:57:42 AM 09/08/2017 GET:
http://rammb-slider.cira.colostate.edu/data/json/goes-16/full_disk/band_13/available_dates.json
9:58:32 AM 09/08/2017 ERROR: Exception class: EHTTPClient | Message: Invalid protocol version in response: ""
Logged
balazsszekely
Guest
Re: Invalid protocol version in response? What does it mean?
«
Reply #1 on:
September 08, 2017, 05:29:51 pm »
This works for me. The file is downloaded in your project directory:
Code: Pascal
[Select]
[+]
[-]
uses
fphttpclient
;
procedure
TForm1
.
Button1Click
(
Sender
:
TObject
)
;
var
FHTTPClient
:
TFPHTTPClient
;
begin
FHTTPClient
:
=
TFPHTTPClient
.
Create
(
nil
)
;
try
FHttpClient
.
AllowRedirect
:
=
True
;
try
FHTTPClient
.
Get
(
'http://rammb-slider.cira.colostate.edu/data/json/goes-16/full_disk/band_13/available_dates.json'
,
'available_dates.json'
)
;
except
end
;
if
FHTTPClient
.
ResponseStatusCode
=
200
then
ShowMessage
(
'Successfully downloaded!'
)
;
finally
FHTTPClient
.
Free
;
end
;
end
;
Logged
vonskie
Full Member
Posts: 186
Re: Invalid protocol version in response? What does it mean?
«
Reply #2 on:
September 11, 2017, 08:45:29 am »
Thank you for the sample, this site is really busy...
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Invalid protocol version in response? What does it mean?
TinyPortal
© 2005-2018