Getting a server response via windsock?


J

jBunton

I have a vb application which posts an HTTP request via a winsoc
control and gets an apprpriate response fron the server (see below).

my access 2000 app should do the same but the server response is a
error.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>ŒÚ&quot; to /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at TextMarketer Por
80</address>
</body></html>

in both applications I am sending EXACTLY the same string as th
argument to
Winsock.send arg - [I have generated a comma delimited list of the as
values in the string in both applications and pasted them into a strin
compare programme]

The string is:-
POST /services/rest/sms HTTP/1.0
Host: sandbox.textmarketer.biz
Content-Type: application/x-www-form-urlencoded
Content-Length: 96

message=my%20message&originator=Jim&mobile%5Fnumber=07111111111&username=xxx&password=xxx

ABOVE - I have altered the mobile_number username and password fo
security reasons.

the response from the vb app is:-
HTTP/1.1 403 Forbidden : Your username/password combination did no
match an account. (ERR149)
Date: Thu, 13 May 2010 11:04:08 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.11 ZendServer/4.0
Content-Length: 377
Connection: close
Content-Type: application/xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE response PUBLIC
"-//textmarketer.biz//DTD Web Services REST 1.0//EN"
"http://www.textmarketer.biz/services/rest/DTD/errors.dtd">
<response processed_date="2010-05-13T12:04:08+01:00">
<errors>
<error code="403">Forbidden : Your username/password combination di
not match an account. (ERR149)</error>
</errors>
</response>

Regards,
J Bunton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top