Entering SMS through 2way.

Entering SMS through 2way. SearchSearch
Author Message
Katya YU
New member
Username: Katya

Post Number: 1
Registered: 02-2006
Posted on Sunday, February 12, 2006 - 08:59 am:   

Hello!

I am sorry for bad English (I translate(transport) with the help of the electronic translator).

As I can modify HTTP header (Host: and Useragent:-) sending entering SMS through 2way?
It is necessary for us, as the provider of a hosting demands presence of heading Host.

It is connected to that, that the hosting virtual and to get on a site it is impossible without presence of heading of the domain.

Thanks!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5520
Registered: 10-2002
Posted on Monday, February 13, 2006 - 05:15 pm:   

Hi,

NowSMS should automatically generate any necessary "Host:" header.

I am not aware of any current situations where the "Host:" header is not generated.

But perhaps you are using an older version of NowSMS? (As I do see some issues where older versions did not include this header.)

If you are not currently running v5.51, please download the trial version of NowSMS from our web site to update. (If you have an existing serial number, this is a free update which recognises existing serial numbers.)

If you are running v5.51, or you update to v5.51 and the problem is still there, try downloading the patch update for v5.51 at http://www.nowsms.com/download/latestpatch.zip.

If you still experience a problem after updating, then please enable the SMSDEBUG.LOG (easiest to do this on the "Serial #" page of configuration), and repeat your attempt. Then post the SMSDEBUG.LOG, so that we can see what you are trying to do.

-bn
Katya YU
New member
Username: Katya

Post Number: 2
Registered: 02-2006
Posted on Friday, February 17, 2006 - 10:29 am:   

At me last version of your program (5.51k)

Broad gully:

13:19:32:152 [7] ThreadProcessConnection: Request processing complete
13:19:32:152 [5] ThreadProcessInboundSMS: Processing 43F5A313.in...
13:19:32:152 [5] GetProgramToExecute: http://host/file.php
13:19:32:152 [5] GetProgramToExecute: http://host/file.php
13:19:32:152 [5] ThreadProcessInboundSMS: Executing http://host/file.php
13:19:32:152 [5] RetrieveURL: Retrieving http://host/file.php
13:19:32:168 [5] RetrieveURL: Retrieving stat/firefox.php
13:19:32:168 [5] RetrieveURL: GET http://host/file.php HTTP/1.1
User-Agent: Now SMS/MMS Gateway v5.51k (b20051013)
Accept: */*
Connection: Close


13:19:32:605 [5] HttpResponseWait: Chunked response Ok
13:19:32:605 [5] RetrieveURL: got unknown response
13:19:32:605 [5] RetrieveURL: HTTP/1.1 404 Not Found
Date: Fri, 17 Feb 2006 10:19:23 GMT
Server: Apache/1.3.33 (Unix)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

<! DOCTYPE HTML PUBLIC " - // IETF // DTD HTML 2.0 // EN ">
<HTML> <HEAD>
<TITLE> 404 Not Found </TITLE>
</HEAD> <BODY>
<H1> Not Found </H1>
The requested URL/file.php was not found on this server. <P>
</BODY> </HTML>

Without Host the server does not give out page as on a hosting many sites on one ip the address.
The server is guided on required host

Help me please
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5592
Registered: 10-2002
Posted on Friday, March 03, 2006 - 10:11 pm:   

This one has had me stumped. But I finally noticed that the host name is included in the "GET" request.

This means that you have a 2-way SMS proxy server configured. (2WayProxy= setting in SMSGW.INI)

The "Host:" header is not present because you have a proxy server configured ... because it is not supposed to be present when a request is submitted to a proxy server.

When an HTTP request is submitted to a proxy server, the host name is included in the URL request. And it is the proxy server's responsibility to generate the "Host:" header when the proxy server makes the resulting HTTP connection.

-bn