Hi, I've an odd question to ask, but I'm just confused. I've attached a webpage, if you load it in IE and click send a HTTP POST request gets sent to http://w2m.comp.dit.ie/services/tyrrell and an XML doc is sent back.
I've been trying to write an Asm program to do this using the wininet functions. It connects grand and I try to send the string '<getdescription>', the status callback reports going through
RESOLVING_NAME
NAME_RESOLVED
CONNECTING_TO_SERVER
CONNECTED_TO_SERVER
SENDING_REQUEST
REQUEST_SENT
RECEIVING_RESPONSE
But it never get to
RESPONSE_RECEIVED
The fault must be lying on the server side, if you type garbage into the text field on the web page and click send IE seems to do nothings so I presume its also waiting for a server response which never arrives.
My question is does anyone know what format the information in the text field is sent. I've tried the string '<getdescription>' in unicode, ansi, UTF-8. No effect.
Its late now, and this has me pulling hairs. :mad: I know this isn't an Asm question, but any help is appreciated.
I've been trying to write an Asm program to do this using the wininet functions. It connects grand and I try to send the string '<getdescription>', the status callback reports going through
RESOLVING_NAME
NAME_RESOLVED
CONNECTING_TO_SERVER
CONNECTED_TO_SERVER
SENDING_REQUEST
REQUEST_SENT
RECEIVING_RESPONSE
But it never get to
RESPONSE_RECEIVED
The fault must be lying on the server side, if you type garbage into the text field on the web page and click send IE seems to do nothings so I presume its also waiting for a server response which never arrives.
My question is does anyone know what format the information in the text field is sent. I've tried the string '<getdescription>' in unicode, ansi, UTF-8. No effect.
Its late now, and this has me pulling hairs. :mad: I know this isn't an Asm question, but any help is appreciated.
And the page of coures.
maybe this will be of some help
POST /services/tyrrell HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en-gb
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Q312461)
Host: w2m.comp.dit.ie
Content-Length: 37
Connection: Keep-Alive
Cache-Control: no-cache
q=%09%3Cgetdescription%3E%0D%0A%0D%0A
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 559
Date: Sat, 06 Dec 2003 08:40:28 GMT
Server: Apache-Coyote/1.1
<?xml version="1.0" encoding="UTF-8"?>
<soml version="1.0" xmlns="http://w2mind.org/soml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://w2mind.org/soml [url]http://w2m.comp.dit.ie/services/soml_1_0.xsd[/url]">
<getdescription status="100" type="response">
<authorname value="Ciaran O Leary"/>
<authorcontact>Ciaran.OLeary@comp.dit.ie</authorcontact>
<description>Tyrrell's Simulated Environment</description>
<datecreated value="2003-09-01"/>
<datelastmodified value="2003-09-01"/>
</getdescription>
</soml>
Thank you, it was that "q=" that I was missing. I still couldn't manage to get it working with WinInet so I just used plain sockets.
Might I ask how you managed to get that information. I see your using Mozilla, I been using Phoenix and Firebird, can either of them give you that info?
Thanks again, your a lifesaver.
Might I ask how you managed to get that information. I see your using Mozilla, I been using Phoenix and Firebird, can either of them give you that info?
Thanks again, your a lifesaver.
I used Ethereal
Thats a cool prog, thanks.