Send the data to server

52 views
Skip to first unread message

Yoganathan Venkatesan

unread,
Apr 29, 2013, 10:43:21 AM4/29/13
to firebre...@googlegroups.com
Hi,
 
   Please suggest which is the best way to send the data(which is in char array) to server from firebreath plugin.

Thanks,
Yoga V

Neil Griffiths

unread,
Apr 29, 2013, 11:36:23 AM4/29/13
to firebre...@googlegroups.com
http://www.firebreath.org/display/documentation/Making+HTTP+Requests+with+SimpleStreamsHelper

I prefer to send data as a POST request - but you can make it a GET request so long as the data is small enough (and you handle it properly on the server)!

Neil



--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Yoganathan Venkatesan

unread,
Apr 29, 2013, 12:25:46 PM4/29/13
to firebre...@googlegroups.com
Hi.. Neil, Thanks for your suggestion. :-). I knew that the POST method is reliable to send the huge data via HTTP header request. But Sorry I didn't 
mention my question clearly in my above statement. I already refer the link that you have provided to me.... its just stated that "NOTE: This is not actually a good idea; it bypasses the browser security model. This is just provided as an example." That is why I need to know the best practice to implement this job with right procedure by using firebreath or directly using windows api.

Thanks,
Yoga V


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "firebreath-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebreath-dev/fLPNNxAJpr8/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to firebreath-de...@googlegroups.com.

Richard Bateman

unread,
Apr 29, 2013, 8:16:19 PM4/29/13
to firebre...@googlegroups.com

The point is that you shouldn't let your javascript api make a direct HTTP post through your plugin; it's fine to make posts yourself in your plugin.  The reason for the comment in the docs is to point out that if you were to create an API by which javascript can make an arbitrary POST to any server it would bypass the browser's cross domain origin policy.

Richard

Yoganathan Venkatesan

unread,
Apr 30, 2013, 1:03:42 AM4/30/13
to firebre...@googlegroups.com
Yes your absolutely gave a required point Richard Thanks. So now we are planing to have the window button in our plugin window itself to upload the image data to server in unsingned char format.

Is it best to do this using the class that will be inherited from below classes or build from pure windows api?
"BrowserStream.h"
"BrowserHost.h"
"DefaultBrowserStreamHandler.h"
 
It would be so helpful to me to get some idea on this.

Thanks,
Yoga V

Richard Bateman

unread,
Apr 30, 2013, 11:05:44 AM4/30/13
to firebre...@googlegroups.com

The BrowserStream stuff may give you better proxy support is the main difference.

Richard

Yoganathan Venkatesan

unread,
May 1, 2013, 9:52:54 PM5/1/13
to firebre...@googlegroups.com
Thanks Richard for your suggestion... I will try this and post my solution soon.

Sorry for delay response.

Regards,
Yoga V

Yoganathan Venkatesan

unread,
May 3, 2013, 2:41:20 AM5/3/13
to firebre...@googlegroups.com

At this moment we have done this task using WinInet. Thanks Richard Sir :-).

Regards,
Yoga V
Reply all
Reply to author
Forward
0 new messages