Can I send data to web server without using get or post.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t really understand what GET/POST means. It’s just a “verb” in the HTTP headers. You are not actually “sending data via POST”, that’s just a short way to say “you are making an HTTP request with the POST verb in the header and arbitrary data in the body”. “Sending data via GET” is a conventional way to say “making an HTTP request using the GET verb in the header and putting some data into the URL”.
You can send any data in the body you wish and get the raw bytes like:
If you’re using HTTP, you always have to use one of the HTTP verbs, GET and POST are the most obvious to use. If you want to avoid HTTP, make up any custom protocol you want using sockets, but you should have a real reason to do so.