thisismondweep
Programmer
- Apr 29, 2007
- 28
Hi,
I am using the sample map httppost to post a request to a webserver and store its response. The map rule says:-
=GET("HTTP",
"-URL -METHOD POST -TV","&q="+searchtext: FieldValue+"&meta="
)
However, the trace file says that it could not get the result, as shown below:-
"Server host is 'WSAHostData: No host data available for ' (host has no data record).
No connection."
The complete trace file is:-
"HTTP Adapter, Version 8.0(81)
Copyright © 2004, Ascential Software Corporation. All rights reserved
Built for WIN32 - INTEL on Jul 2 2005 at 01:14:02.
Windows NT CRT DLL is
© Microsoft Corporation. All rights reserved..
Using C:\WINDOWS\system32\msvcrt.dll (Version 7.0.2600.3085 (xpsp_sp2_qfe.070216-0020)) for Visual C++ runtime.
Retry Count is 0. Retry Interval is 0. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Will process 14 bytes of data.
Run Started at 17:44:49.142 on 05/15/07.
Options used: trace,verbose,name,method,url
URL user: ''.
URL pass: '*****'.
URL host: 'URL port: '80'.
URL path: '/search?hl=en'.
Using http: protocol.
Using HTTP/1.1.
[WSAStart: Entering]
[WSAStart: bWSStarted = 0, nWSClients = 0]
[WSAStart: Attempting WinSock initialization.]
[WSAStart: WinSock initialized successfully.]
Windows Sockets Version 1.1 will be used.
Windows Sockets Version 2.2 is supported.
Windows Socket Description is 'WinSock 2.0'.
Windows Socket System Status is 'Running'.
Windows Socket supports up to 32767 socket(s).
Windows Socket supports UDP datagram of up to 65467 bytes.
Windows Socket has no additional vendor-specific information.
Sockets Client ID 1 enabled.
[WSAStart: Exiting (rc = 1)]
Server host is 'WSAHostData: No host data available for ' (host has no data record).
No connection.
[WSATerm: Entering]
[WSATerm: bWSStarted = 1, nWSClients = 1]
Sockets Client ID 1 disabled.
[WSATerm: nWSClients remaining = 0]
[WSATerm: Attempting WinSock shutdown.]
[WSATerm: Exiting]
Attempt #1 failed, no more retries allowed.
"
I would appreciate any help to understand how to connect to the webserver and retrieve information from it.
Cheers,
Mondweep.
I am using the sample map httppost to post a request to a webserver and store its response. The map rule says:-
=GET("HTTP",
"-URL -METHOD POST -TV","&q="+searchtext: FieldValue+"&meta="
)
However, the trace file says that it could not get the result, as shown below:-
"Server host is 'WSAHostData: No host data available for ' (host has no data record).
No connection."
The complete trace file is:-
"HTTP Adapter, Version 8.0(81)
Copyright © 2004, Ascential Software Corporation. All rights reserved
Built for WIN32 - INTEL on Jul 2 2005 at 01:14:02.
Windows NT CRT DLL is
© Microsoft Corporation. All rights reserved..
Using C:\WINDOWS\system32\msvcrt.dll (Version 7.0.2600.3085 (xpsp_sp2_qfe.070216-0020)) for Visual C++ runtime.
Retry Count is 0. Retry Interval is 0. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Will process 14 bytes of data.
Run Started at 17:44:49.142 on 05/15/07.
Options used: trace,verbose,name,method,url
URL user: ''.
URL pass: '*****'.
URL host: 'URL port: '80'.
URL path: '/search?hl=en'.
Using http: protocol.
Using HTTP/1.1.
[WSAStart: Entering]
[WSAStart: bWSStarted = 0, nWSClients = 0]
[WSAStart: Attempting WinSock initialization.]
[WSAStart: WinSock initialized successfully.]
Windows Sockets Version 1.1 will be used.
Windows Sockets Version 2.2 is supported.
Windows Socket Description is 'WinSock 2.0'.
Windows Socket System Status is 'Running'.
Windows Socket supports up to 32767 socket(s).
Windows Socket supports UDP datagram of up to 65467 bytes.
Windows Socket has no additional vendor-specific information.
Sockets Client ID 1 enabled.
[WSAStart: Exiting (rc = 1)]
Server host is 'WSAHostData: No host data available for ' (host has no data record).
No connection.
[WSATerm: Entering]
[WSATerm: bWSStarted = 1, nWSClients = 1]
Sockets Client ID 1 disabled.
[WSATerm: nWSClients remaining = 0]
[WSATerm: Attempting WinSock shutdown.]
[WSATerm: Exiting]
Attempt #1 failed, no more retries allowed.
"
I would appreciate any help to understand how to connect to the webserver and retrieve information from it.
Cheers,
Mondweep.