I have written a program in C++ in which I am exporting GPIOs of a Raspberry Pi running Raspbian Wheezy, and sending some data to a server through Curl. When I run the executable with sudo, I do not get any response in Curl (like success). When I run without sudo, the curl is working fine giving a response(success), but unfortunately the GPIOs are unable to export because I am running it without sudo. It says something like 'permission denied to export'.
Please help me on this