Getting a server response via windsock?

Discussion in 'Access Macros' started by jBunton, May 15, 2010.

  1. jBunton

    jBunton Guest

    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

    <title>501 Method Not Implemented</title>
    <h1>Method Not Implemented</h1>
    <p>ŒÚ&quot; to /index.html not supported.<br />
    <address>Apache/2.2.3 (Red Hat) Server at TextMarketer Por

    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
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 96


    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
    "-// Web Services REST 1.0//EN"
    <response processed_date="2010-05-13T12:04:08+01:00">
    <error code="403">Forbidden : Your username/password combination di
    not match an account. (ERR149)</error>

    J Bunton
    jBunton, May 15, 2010
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.