473,804 Members | 3,320 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 1347

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

Similar topics

117
7276
by: Peter Olcott | last post by:
www.halting-problem.com
5
3456
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
5225
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
3818
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
4931
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
14302
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
2065
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
9704
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
9569
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,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
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
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
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
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.