2way sms to retrive webpages? | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 15, 2003 ⬆ |
◄ ► |
Author | Message | |||
prot |
Hi Would it be possible to configure 2waysms to retrive a webpage? I understand that this would be possible only if its a plaintext. So i put in my command as: http:/// But it doesnt work... Can you explain why? thanx | |||
Bryce Norwood - NowSMS Support (Bryce) |
Hi prot, What happens? Can you see if the command ever gets connected to? Is the command configured to "return response text"? Do you get any text returned? (Even an error message about invalid content type?) It'd probably be easiest to troubleshoot this via e-mail. If you put your gateway into debug mode by manually editing SMSGW.INI and adding Debug=Yes under the [SMSGW] section header. Then restart the gateway and send a message into the phone attached to the gateway. E-mail me the SMSDEBUG.LOG and SMSGW.INI files at nowsms@now.co.uk, and we'll take a look. -bn | |||
Andrej |
Hmm, I am testing HTTP POST to web. Now, it worked ONLY FEW TIMES! I sent a serial od 10 messages, your program read them all fine, and after few seconds, the WEB page received HTTP POST request. Tehn, I tested it OFF-LINE. I saw that some .IN files are created in SMS-IN directory. But after I reconnected to internet again, your program SENT all those HTTP POST requests fine. After SECOND test it stopped sending HTTP POST requests to the web address specified. STATUS: - directory SMs-IN is full with .INI files | |||
Andrej |
Here is the extract of DEBUG LOG, only the lines which apply to failed request: ------------------------------------------------- 05:38:47:310 [3] ThreadProcessInboundSMS: Processing 3E9CBD94.in... 05:38:48:762 [3] ThreadProcessInboundSMS: Executing http://user:pass@gateway.smsliga.net/processor.php?sender=040664422&msg=Test%20msg%20SMS 05:38:48:762 [3] RetrieveURL: Retrieving http://user:pass@gateway.smsliga.net/processor.php?sender=040664422&msg=Test%20msg%20SMS 05:38:48:762 [3] RetrieveURL: Looking up gateway.smsliga.net 05:38:49:012 [3] RetrieveURL: Retrieving processor.php?sender=040664422&msg=Test%20msg%20SMS 05:38:49:363 [3] RetrieveURL: got unknown response 05:38:49:363 [3] RetrieveURL: 404 Not Found Not Found The requested URL /processor.php was not found on this server. Apache/1.3.14 Server at host.sparovcek.net Port 80 05:38:49:363 [3] RetrieveURL: timeout waiting for response ------------------------------------------------- It seems like there is something missing on the server, but NO! If I utilize the HTTP POST itself, like this: http://user:pass@gateway.smsliga.net/processor.php?sender=040664422&msg=Test%20msg%20SMS The processor.php script retreives it with no problem. Any idea? | |||
Bryce Norwood - NowSMS Support (Bryce) |
Hi Andrej, What version of NowSMS do you have? It sounds like you might have a version prior to v4.11. In earlier versions, when connecting to an HTTP-based SMSC, we did not include a "Host:" header in the HTTP request. That caused problems with some services. Basically, it looks like "gateway.smsliga.net" is multi-homed and shares the same server as "host.sparovcek.net". So without the "Host:" header in the HTTP request, the web server does not know which of the web sites that the server hosts to direct the request to. We've had the v4.11 version here on the web site for about 2 months now, so I'd be surprised if you have an older version, but maybe it was downloaded elsewhere? If you do have v4.11, then I'm puzzled. Let me know the version, and if it is v4.11, then we'll do some more investigating. -bn | |||
Andrej |
I have 4.11 version. Pay atention to the fact, that IT WORKED for few messages! And also it was working when I was off-line for more than 30 minutes - program uploaded HTTP POST afterwards. Now, if you want to check it out, try this: send HTTP POST request directly by entering this URL at your browser: http://demo:user@gateway.smsliga.net/processor.php?sender=1234567890&msg=TEST Try changing SENDER and MSG parameters. You will see, it works fine. Then try entering this as a command to execute when messages are retreived. IT WILL WORK! Then try go off-line, and receive 10 or 20 messages. Go on-line again and program wil NOT WORK ANY MORE! | |||
Bryce Norwood - NowSMS Support (Bryce) |
Ok. Disregard my last message, I thought you were using an HTTP-based SMSC ... but that is a command that you are using for processing inbound messages. So my first reply wasn't relevant, although it certainly sounds like a similar type of problem. I'm not sure what you mean by "go off-line" (I assume disconnect the internet cable). I've tried your test ... you probably have received about 50 messages in total. See your e-mail for some follow-up, I think we need to get some additional debug information to understand what's going on. -bn | |||
Andrej |
Okay, I read your e-mail and responded. By "go off-line" I meant to disconect from internet - I have ISDN dial-up line, not a permanent connection. | |||
Bryce Norwood - NowSMS Support (Bryce) |
Hi Andrej, Glad to hear you got the e-mail. I didn't receive any replies from you, so if you have any further information on this problem, please let me know. -bn |