How do I get Post/Get Data in Chomium (DCEF3 / Delphi 7) - delphi

I hope someone can help!
I'm converting a Delphi 7 app that uses TWebBrowser to use Chromium instead.
Something I'm having a problem with, I display the Post/Get values to the user in OnBeforeNavigate2 I grab the PostData and do ByteArrayToStr(PostData,sPostData); to turn it into a readable string.
I've gone through the documentation and found the spec for CefPostData but cannot work out which method to use and how to acccess it.
Does anyone have example code or can steer me in the right direction?
I had a look at a post on StackOverflow that explains how to Send Post data, but I can't find anything for writing it.
Thanks in advance,

Related

Writing to password protected NFC tag in Swift

Is there a way in Swift (NFC core) to remove and set password on the tag. I am currently doing a research on the web but I cannot find anything, only simple read write code snippets.
I guess there is a way, so if somebody could point me in the right direction, or give me some hits on how it can be done.
Thanks
I think that isn't available now in CoreNFC and don't be available in future. Me too doing this research and found only availability to do tag readOnly by using WriteLock. But that operation irreversible as i know. If you found something else, please write here.
But I think it depends on the chip used in the tag. Because Ukrainian Passports using some PIN and CAN codes for access to data inside the tag. And I have application, but I don't know it writes by Swift or not.

Ruby api errors in console - How to visualize in a better way?

Alright, kinda a weird question. But I'm gettis some random errors after I call a Ruby Api using AngularJs, as a response I get a big error in the console. Looks like the regular Ruby error screen but I would like to know if there is a better way to look at it.
Example>
Sorry if this is not the way to ask.
Thanks in advance.
Redo the request while the Network tab is open in Developers Tool. Click this request, i.e http://localhost:3000/users/sign_in.json,and then you can preview it on the right.

mobile application twebbrowser post method

Is there any simple way to open page in mobile application using twebbrowser
containing two text parameters - post method (it can't be get it must be post).
I know I can use idhttp to post parameters but i don't know how to open page in twebbroser with posted parameters ?
Please maybe someone will explain it to me as simply as it can be done ;)

Printing forms on Play Framework

I'm developing a web app, using Play framework and javascript, but exactly I don't know how to print a form (i.e. an invoice). I thought it has to be implemented on Javascript. but reading on web, I didn't find anything. I´m searching now if the implementation is on Server side (Java), but i dont have any idea.
That's a very weird question that you have here, I probably don't get it right..
What do you mean "Print a form" ?!
What about print page from your favorite browser ?
Must be missing something.
What about render the invoice in pdf format?If you are interested in doing something like that check this module:
http://www.playframework.org/modules/pdf
I think it is the best solution and that's what most companies do.Hope that helped

Firefox extension, need advice

I've never built a ff extension before and before I start I want some feedback on my idea to make sure its possible.
I want a firefox extension that allows me to supply a url with parameters in GET format, the extension would take the url, parse it, and submit the request as POST rather than GET.
Is this possible? and could someone give me some advice on how to start designing an extension? or point me at a tutorial?
You definitely can! Parsing the URL's can be done with any javascript library you can find such as parseUri or you can do it with the mozilla component nsIURLParser.
After that it is only a matter of actually executing the POST request with a XMLHttpRequest. I think that should be the easy part to do. The hard part will be getting up to speed with Firefox extension development. The Add-on Builder can set you with with a minimal Firefox extension as a building block.
Good Luck!
I don't know for sure, but as the Tamper Data plugin is able to manipulate HTTP request, it should be possible.
Have a look at the source code of the plugin to get some ideas.

Resources