473,790 Members | 2,850 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setRequestheade r problem

hello everyone

In my applicaiton I am using vb6 dll to connect to a jboss 4 server and run
a script in the jboss and get the data from jboss server and
contiue work with that data return in the dll
my code looks like this
Dim oXMLdoc As New MSXML.DOMDocume nt
'// Create a XMLHttpRequest object
Dim oXMLHttpReq As New MSXML.XMLHTTPRe quest

Dim oXMLdoc As New MSXML.DOMDocume nt
'// Create a XMLHttpRequest object
Dim oXMLHttpReq As New MSXML.XMLHTTPRe quest
oXMLHttpReq.ope n "POST", sUrl &
"http://prwelk:8080/b2ejap/pladew/PladewHttpServe rGateway.page?U SERID=" &
sUser & "&PASSWD=" & sPassword & "&QUERY=1", False, sUser, sPassword

Dim sSqlXml As MSXML.DOMDocume nt
Set sSqlXml = CreateSelectXML (sStatement)

oXMLHttpReq.sen d sSqlXml.xml
'// Check success
If oXMLHttpReq.Sta tus = 200 Then '// HTTP_STATUS_OK
If oXMLHttpReq.res ponseXML.docume ntElement Is Nothing Then

Set ExecuteCommand = oRowSetReturn //comes here
Else

oRowSetReturn.x ml = oXMLHttpReq.res ponseXML.docume ntElement.xml
'Set ExecuteCommand = oRowSetReturn

'If oRowSetReturn.E rrorStack.Count > 0 Then
' MsgBox oRowSetReturn.E rrorStack.Item( 1).ErrDesc
'End If
End If
Else
'Set ExecuteCommand = oRowSetReturn.E rrorStack.Add(0 ,
oXMLHttpReq.res ponseText)
' oRowSetReturn.E rrorStack.Add 0, oXMLHttpReq.res ponseText
Set ExecuteCommand = oRowSetReturn
End If

i am using windows 2000 sp4 with vb6 sp5

Problem as it appears is that the request headers are not compatible.

Is there any way to set the request headers with the current browser
settings
I need a method to get the browser cookies..

this dll is called from the javacript
i am using IE6

can anybody help me

/prash

message.
Jul 22 '05 #1
0 1346

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

117
7273
by: Peter Olcott | last post by:
www.halting-problem.com
5
3455
by: Matt Kruse | last post by:
I'd like to test for Opera8.00's missing setRequestHeader method before actually instantiating the object. For example, this works in firefox: if (XMLHttpRequest.prototype.getRequestHeader) { ... } It causes an error in Opera8.00. In fact, doing typeof(XMLHttpRequest.prototype) returns 'undefined' in Opera8.00. I'm not sure how Opera is actually implementing the XMLHttpRequest object, but I suppose it's not a native object that can be...
28
5224
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass(); .... and then call the virtual method, why is it that the base class's method is called instead of the overridden method? How do I fix this if I don't know at runtime what the child class is? I'm using Activator.CreateInstance() to load the...
6
3815
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length is more that 1249 bytes, then the progress bar of the browser will move too slow and then displaying that the page not found!!!! If the message is less than or equal to 1249 then no problem.
0
1355
by: Noel Volin | last post by:
If anyone has any ideas on this, it would be greatly appreciated. I will posted the code below, however, the first GET sets and reads the Custom Header as you would expect. After that, only the original Header value will be returned by the Request.ServerVariables("HTTP_XML") call. I cannot seem to deduce the problem. This happens on our server, as well as machine localhost. Client Code snippet: var str_xml_request =...
16
4930
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by Microsoft must be installed on their servers. Now german Umlaute (ä, ü, ö) and quotes are returned incorrectly in SOAP fault responses. This can be easily verified: Implement the following in a web service method (just raises a SOAPException with a...
2
4558
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was set to...it is set to false. Can someone show me what I am doing wrong and tell me the correct way? Thank you. In the page load event, I am doing the following:
8
14300
by: rithish | last post by:
I am on IE 6. I was trying out a simple xmlhttp function that send GET/POST requests. However, IE throws an 'unspecified error' when I call the 'setRequestHeader' method. The function that I am trying out is give below. Am I doing something wrong? Any help is greatly appreciated. /*
10
2060
by: paitoon | last post by:
Hello Refer to the thread that i have posted before: http://www.thescripts.com/forum/thread755824.html On that time i got problem about encode ajax to send email...everything worked find after i use setRequestHeader and encodeURIComponent...but then i test it with POP3 mail everything is not encoded...why ? And is it has some way to fix this ? thank you so much Paitoon
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.