[Jprogramming] web service : page not complete
'Pascal Jasmin' via Programming
programming at jsoftware.com
Fri Jul 31 16:14:20 UTC 2015
Perhaps not suitable, but there is an easy way to do this, that also works transparently over https as well.
in Jqt, the webview control can be set with a url, and it will retrieve the contents and the text holds the html, that can be retrieved with get on the control.
From: yves.tanguy <yves.tanguy at frmail.net>
To: programming at jsoftware.com
Sent: Friday, July 31, 2015 11:43 AM
Subject: Re: [Jprogramming] web service : page not complete
Hello Raul,
Thanks for your clearly explanation.
> Exactly how you deal with that depends on what you are trying to
> accomplish.
my ambitious project is to find the complete html page in my text
variable (unicode).
> In this case it looks like you are building an http client, so it's
> fairly simple.
i want to believe ;)
> If I recall correctly, you should be able to keep
> reading the socket until it gives you an empty result. (If you had
> nonblocking io enabled it would be a bit more involved, but it doesn't
> look like you enabled nonblocking.)
> Yes, theorically, i agree.
But, after each request, connection is closed (but i am not sure, it
is depend on protocol version)
And i have not find how to GET with the first position to do something
like
request 1 : from 0 to 999
request 2 : from 1000 to 1999
...
> until socket gives you an empty result
i swim (fight ?) with documentation LJ.odt, and i have a long way to
understand how can i do by myself.
Regards,
Yves
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list