Is it possible to use HTMLViewer in console app

Is it possible or is there an alternative to use HTMLViewer in a console app.

Nope. HtmlViewer needs an interface. What do you want to do?

I need to programmatically login to a website and download one file using the session id got after logging in etc. Also i use executejavascript to submit the login button. This is fine working under desktop app. Now i need this to convert to console app.

use HTTP sockets or CURL

A Web app is a console app. There you can do an executejavascript, too.

Using HTTPSocket, how do you click a submit button with assigning username / password in the respected text field. All this i could call the executejavascript from HTMLViewer and was working well. Can CURL do these things?

In the web app, do you mean to use the webHTMLViewer?

I usually change the website to use my echo.cgi and return the query. Than I can just build that query without the form and send it directly via my MBS Xojo CURL Plugin.

Do you have this in your examples, or if not, would you make it available?

Well, you change the html form to point to:

monkeybreadsoftware.de/filemaker/echo.cgi

With http or https URL.

Than you see in Browser what it passed and you can put the same in OptionPostFields.

[quote=437053:@Sunil Abraham]
Using HTTPSocket, how do you click a submit button with assigning username / password in the respected text field. All this i could call the executejavascript from HTMLViewer and was working well. Can CURL do these things?[/quote]

As long as you know the field names and the backend cgi/php that the form calls; you can automate it.

Look up sending form data with a socket.

Edit: typos