Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error while using the HTTP adapter 1

Status
Not open for further replies.

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.
 
Olly,

Thank you for your response. I could run the sample map httpget.mmc and get a form from an external website. I do have access to the internet and also could connect to google.co.uk.

Yes, I connect to the web using a proxy server.I will try with the ip address though I am not sure of what you requested about setting up a DNS server. Is it something to do in DSTX?

Cheers,
Mondweep.
 
Olly,

You are correct- I cannot ping google.co.uk! This is strange though. I thinkthis is because-as you have rightly indicated- I access the internet through a proxy. When I do a nslookup on google.co.uk, I am provided the local server(I think the proxy server DNS and the ipaddress).

However, from Internet Explorer, i can access the website google.co.uk. What should be the way that I can access it fromwithin the TX map?

Cheers,
Mondweep.
 
Hi,

I tried to connect using the ipaddress of google.co.uk. However,this time, I encountered the error:-

WSAConnect: Connection refused.

I understand that the proxy server blocked the attempt to connect to the address. What way can I get around this?

Cheers,
Mondweep.
 
Hello,

I used the command as
= GET("HTTP",
"-URL -METHOD POST -PROXY -TV")

It did connect to the internet and the trace showed me that the POST was

This string, in Internet Explorer, produces the google search results. However, when I run the same through the map,I get a message from google which says:
Google Error
Not Implemented
The server is unable to process your request.

I am not sure why Google will respond to the same query, in one way, when executed through Internet Explorer and in another way, when performed through the DSTX map. I think I am missing something when executing it from my map; but aint quite sure what it is!

Any comments would be gratefully received.

Cheers,
Mondweep.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top