Go Down

Topic: Sending Data to a Mysql WebServeur using POST method (Read 18291 times) previous topic - next topic

rockwallaby

@JohnHoward,
Please carefully read my reply #11, re trying without using DHCP, and understand the configuration of your router(s) between Arduino and server.
Also my reply #13, your initial problem of connection issues had little to with what the OP, royalldonkey was asking and so we are mixing up this thread with multiple issues.

@royalldonkey, can you tell us your status?

JohnHoward


@JohnHoward,
Please carefully read my reply #11, re trying without using DHCP, and understand the configuration of your router(s) between Arduino and server.
Also my reply #13, your initial problem of connection issues had little to with what the OP, royalldonkey was asking and so we are mixing up this thread with multiple issues.

@royalldonkey, can you tell us your status?



Apparently I need to explicitly say I was trying to solve the OP's problem for him, hence "my POST above should do what you are trying to do."  And I thought I had, with one reservation which I had noted. It's not terribly polite to lash out at someone about 'thread hijacking' for simply trying to help.  Or at any time, really.

royalldonkey

Hi everyone,

thank you for your precious help.
I managed to get the code to work by using SurferTim web client code, that you can find where:
http://playground.arduino.cc/Code/WebClient

thanks you every much.

rockwallaby

Hi Anthony,

That's good news, well done.
Just to let you know, the code I posted above for the Arduino POST method is based on SurferTim's code of WebClient.

Thanks for letting us know, much appreciated.

Santé
Paul

ashishwazarkar

hello sir,
thank you for your code
i try it on php but want  use asp.net c# for storing data in mysql data base than what can i do ?
help me..

SurferTim

Should be no different for an asp server on the Arduino end, just the page name is different. Don't know about the asp C# code tho.


tolerance_zero

Is there any easy example how to send data using Post method and then php script put this data to mysql database?

Or can somebody help me doing it?

gpsmikey

One advantage (at least that looks like it to me) of using GET instead of POST for initial experimenting/testing is the very same thing that is a disadvantage to GET - it is visible as part of the URL.  That feature makes it very easy to simply create a test url in your browser that passes whatever data you want along to your test page.  You just add the "?var1=something" for example then your web page can be looking for "var1".  You can easily change the data being passed (even bookmark it if you want) to try different values of things.  It wasn't obvious to me how to easily generate a test using POST from a simple browser.
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy