Questions tagged [send]

is a generic tag for communication between programmed elements using some protocol.

This is the generic tag to use when two or more elements communicate each other using some protocol. An example of this is, send a data flow through sockets from one application to another, send a data flow from a client to a server or send some data from one application architecture component to another.

2171 questions
13
votes
1 answer

Service Workers: Retrieve xhr body when fetching the request

How can I retrieve the body I sent from a xhr (XMLHttpRequest) send(body) call?. My xhr variable is an XMLHttpRequest ready to call an internal url using the POST method (Ex: /path/api ) xhr.send("a=1"); On the other side, I have implemented a…
Miguel Guardo
  • 853
  • 1
  • 9
  • 17
12
votes
3 answers

How to send email through MailChimp 3.0 api?

I'm trying to send email through mailchimp api version 3.0 in php, but i have no luck. This is my code: $postString = '{ "message": { "html": "this is the emails html content", "text": "this is the emails text…
Anton Smatanik
  • 587
  • 1
  • 9
  • 25
11
votes
4 answers

Sending emails using C

I have just started learning about socket programming and learned about winsock and achieved some progress. my question is basically: I want to send emails, what should I do? points to be mentioned: I learned about initializing winsock. SMTP port…
joker
  • 3,416
  • 2
  • 34
  • 37
11
votes
3 answers

How can I send an SMS from Java?

I wanted to send SMS to particular mobile from a Web application and receive his reply and view to a web application only. Is it possible to create using Java technology?
mahendran
11
votes
4 answers

Is it pythonic to use generators to write header and body of a file?

If I was to write a file with this content: #You have been defeated! #It's merely a flesh wound! We are the knights who say Ni! We are the knights who say Ni! We are the knights who say Ni! Would it then be very non-pythonic to do it with a…
tommy.carstensen
  • 8,962
  • 15
  • 65
  • 108
11
votes
3 answers

Linux socket: How to make send() wait for recv()

I am making a simple client-server application using TCP protocal. I Know that by default. recv() will block until the other side call a send() to this socket. But is it possible that send() block itself until the other side has recv()ed the msg…
user2151995
  • 113
  • 1
  • 1
  • 4
11
votes
3 answers

Send redirect to relative path in JSP?

response.sendRedirect("../seja/izpisknjig.jsp"); the file in which I execute this line is index.jsp. the directory structure looks like this. project --index.jsp seja --izpisknjig.jsp How do I form the relative path to redirect to izpisknjig.jsp.
Borut Flis
  • 15,715
  • 30
  • 92
  • 119
11
votes
5 answers

Android send SMS automatically on button click

I am trying to automatically send SMS message to a certain number when the user presses a button on the screen. This is my code: Intent smsIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("sms:xxxxxxxxxxx")); smsIntent.putExtra("sms_body",…
Alex
  • 876
  • 6
  • 17
  • 38
10
votes
3 answers

Ask the user to send crash log after crash on iPhone

Some application ask the user if they want to send the crash log by email when they restart after a crash. How are they doing that ? They have to record the log when they crashing and reads this file and ask the user to send it if it's not empty…
Ludovic Landry
  • 11,606
  • 10
  • 48
  • 80
10
votes
4 answers

In Java, send commands to another command-line program

I am using Java on Windows XP and want to be able to send commands to another program such as telnet. I do not want to simply execute another program. I want to execute it, and then send it a sequence of commands once it's running. Here's my code of…
bradvido
  • 2,743
  • 7
  • 32
  • 49
10
votes
4 answers

facebook send API Error Code: 100 API Error Description: Invalid parameter Error Message: 'link' is invalid

I am using facebook post GRAPH UI for posting private message with link to my application in facebook. Earlier it was working fine but from last two days the dialog started throwing error as : An error occurred. Please try again later. API Error…
Priyank Gupta
  • 803
  • 2
  • 8
  • 10
10
votes
3 answers

show loading before showing send result in jquery

I have a simple jquery code to send a content in a jQuery modal window with ajax! everything is working without any problem. in normal, after clicking on the send button, after 1-2 seconds this code showing the result, function AddFastqpro(action)…
Alireza
  • 1,048
  • 5
  • 18
  • 36
10
votes
2 answers

TCP Send does not return cause crashing process

If a tcp server and client are connected, I'd like to determine when the client is no longer connected. I thought I can simply do this by attempting to send a message to the client and once send() returns with a -1, I can then tear down the socket.…
Danny
  • 103
  • 1
  • 4
9
votes
4 answers

Flex: Sending parameters to Alert closeHandler

Is it possible to send parameters to a closeHandler Alert function? The fisrt parameter the function gets is the CloseEvent, but how to send another one?
cili
  • 1,037
  • 2
  • 19
  • 34
9
votes
4 answers

Python Selenium: Send keys is too slow

I'm using element.send_keys("Anything") to fill out a form, but it takes very much time and the script has to fill it in fast. I tried different Chromedriver versions but nothing helped. Do you have any ideas why it takes so long? How can I make it…
Julian
  • 101
  • 1
  • 5