HTTP 1.1. 200
Hi,
I am trying to install a client Linux on a machine with SO Red Hat 4.0. I run the setup, then I give the password and user and I got:
HTTP 1.1 200
Does anybody know something about it?
I applied a serie of patchets to upgrade the mobile server and MDK from the version 10.2.0.1.0 to 10.2.0.2.0.
Similar Messages
-
Receiver XI adapter error :HTTP Status Code 200 during Reponse Parsing
Hi Exeprts,
My Scenario is mail to ABAP proxy , I have got the bellow error in moni while testing my secnario .
Please help me reslove this .
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">OK_BUT_NO_XI_MESSAGE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3>(See attachment HTMLError for details)</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>HTTP Status Code 200 Received But Error During Response Parsing: No XI Response Received XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
Regards
UpendraHi Mark ,
No error message in attachement . only it daisplay the following information
SAP Library
SAP Library contains the complete documentation for SAP NetWeaver Application Server Java. You can access it by choosing SAP NetWeaver.
SAP NetWeaver Administrator
A powerful administration, configuration and monitoring tool, which bundles key administrative tasks to keep your SAP NetWeaver system landscape running. SAP NetWeaver Administrator can be used in a central or local scenario. Here you access the local NetWeaver Administrator.
System Information
System information provides administrators with an overview of the system configuration and its state. It shows all of the system's instances and processes, their current state and important parameters (such as ports) that may be required for support cases, as well as the versions of the components installed.
Services Registry
The Services Registry is a UDDI based registry that contains definitions of enterprise services and references to their metadata.
User Management
The user management administration console provides administrators with the functions they need to manage users, groups, roles, and user-related data in the User Management Engine (UME). Users without administrator permissions can use it to change their user profile.
UDDI Client
The UDDI client provides query and publishing functions for UDDI entities to any UDDI compliant registry.
Web Services Navigator
Web Services Navigator is a tool that gives you a short overview of a specific Web service based on its WSDL, and enables you to test your Web service by creating and sending a client request to the real end point.
Web Dynpro
Web Dynpro is a User Interface technology available within the SAP NetWeaver Developer Studio.
Various Web Dynpro tools provide administrators and application developers with performance measurement and application administration capabilities. The Web Dynpro runtime is already deployed.
Regards
Upendra -
HTTP Status Code 200 Received But Error During Response Parsing
Hi Experts,
We are testing a simple Proxy(ECC) to File scenario in QA. This interface was working fine in Dev but we are getting the following error here in QA:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Call Adapter -->
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">OK_BUT_NO_XI_MESSAGE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>HTTP Status Code 200 Received But Error During Response Parsing: No XI Response Received XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
We searched other threads but could not get any solution. Please provide suggestions.
Thank You.
Regards,
Anandanthe problem was due to high volume message (247 MB ) ...Java stack was not able to process this huge message ,that is the reason ,it started automatically and as a result , "HTTP Status Code 200 Received But Error During Response Parsing" due to unavailability of AFW during Call adapter step in the pipeline processing...
We have done the following activities in order to solve this problem....
increase the value of icm/HTTP/max_request_size_KB to 512MB
icm/wp_roll_timeout to maximum
HTTP TIMEOUT to 1800 sec
icm/wp_roll_timeout to maximum
mpi/total_size_MB to maximum
mpi/buffer_size to maximum
and then increased the maxthreadcount ,maxcontentlength using config tool...
and also increased the java heap size to maximum....
After doing everything ,the file has been successfully processed....
the problem has been resolved... -
Invalid http response: HTTP/1.1 200
Hi gurus!
I have a problem with an asynchronous interface.
We are calling a Webservice which we don't need any response. In sxmb_moni it's OK, but in our RWB we see it as failed, with this entry: invalid http response: HTTP/1.1 200.
I have search in logs, and in defaultTrace_00.0.trc we can see the following entry:
Marked transaction for rollback for meesage 4b4ed19f-bbe6-0062-e100-8000ac1f041d(INBOUND). Reason: java.io.IOException: invalid http response: HTTP/1.1 200
We have captured the HTTP header response, and is:
HTTP/1.1 200
Date: Thu, 14 Jan 2010 10:26:03 CET
Server: Mule/1.2
Connection: close
Expires: Thu, 14 Jan 2010 10:26:03 CET
Content-Type: text/xml
Content-Length: 508
X-MULE_CORRELATION_ID: d595447a-00ee-11df-a6a5-becd407b7daa
X-MULE_CORRELATION_GROUP_SIZE: 3
X-MULE_CORRELATION_SEQUENCE: -1
Could it be problem of the X-MULE_CORRELATION headers? Or Maybe PI needs an HTTP/1.1 200 OK?
Thak you!!!!Hi Ignasi,
I personally donu2019t think you will have much luck getting XI to accept this response since itu2019s not an XI issue. Itu2019s true that the client (XI in this case) is not required to examine or display the reason-phrase, but that statement doesnu2019t negate the requirement on the server to provide it. The client has the option to look at it or not, but the server must still provide it either way.
I didn't notice the http header before, but the server you are connecting to is actually Mule version 1.2. This release dates back to 2005. I ran a quick test and reproduced the issue using Mule 1.2 (hello-http sample). This may not be the same exact issue, but I did observe the same issue with the missing reason-phrase. The issue is fixed in the Mule 1.3 release.
Perhaps they can request a patch for 1.2. This may not be possible since they are working on the Mule 3.0 version now, but I really donu2019t know. Itu2019s literally one line of code. I made one small change and was able to get the hello-http sample working (code is open source):
Class: org.mule.providers.http.transformers.UMOMessageToHttpResponse
From this:
httpMessage.append(status).append(HttpConstants.CRLF);
To this:
httpMessage.append(status).append(" ").append(org.apache.commons.httpclient.HttpStatus.getStatusText(status)).append(HttpConstants.CRLF);
org.apache.commons.httpclient.HttpStatus.getStatusText is the method they are using in 1.3 to resolve the reason-phrase using the status code.
Thanks,
-Russ -
Hi to all,
This is siddiqali working on sahrepoint 2010.I open my Web application then i got error as
HTTP/1.1 200 OK
Server: Microsoft-IIS/7.5
Connection: close
Can any one help me hoe to solve it
Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.Hi Matthew ,
Thanks for responding .I have reattached the data base but getting trouble shoot as
The Workstation service has not been started.
."Can you tell me why it is showing.
Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali. -
I've installed the OAS10g (10.1.2.0.2) and deployed the peoplesoft application here i'm getting the logs as follows.
First in C:\OraHome_1\j2ee\home\log\home_default_island_1
default-web-access
10.176.174.109 - - [03/Feb/2006:00:27:13 -0800] "GET /webapp/servlet/EMDServlet HTTP/1.1" 200 14
10.176.174.109 - - [03/Feb/2006:00:37:13 -0800] "GET /webapp/servlet/EMDServlet HTTP/1.1" 200 15
10.176.174.109 - - [03/Feb/2006:00:47:13 -
second in C:\OraHome_1\j2ee\PeopleSoft\log\PeopleSoft_default_island_1
default-web-access
10.176.174.109 - - [03/Feb/2006:01:45:03 -0800] "HEAD /index.html HTTP/1.1" 404 0
10.176.174.109 - - [03/Feb/2006:01:45:23 -0800] "HEAD /index.html HTTP/1.1" 404 0
Can any one help to solve this issue.The HTML code 404 means page not found. Do you really have a index.html file under address / ?
Regards,
Martin -
Error when sending by HTTP (error code 200, error text OK)
We receive a quantity of messages everyday that "sometimes", for some
strange reason, seem to fail in XI, with the message:
<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
<SAP:P1>200</SAP:P1>
<SAP:P2>OK</SAP:P2>
<SAP:Stack>HTTP response contains status code 200 with the description
OK System error in parser</SAP:Stack>
We checked out note 871959 but we are in a higher SP release XI 3.0
(14), and the corrections are implemented.
Any other reccomendations?EXACT, but the interface monitor shows that as an error.
And that's what I need, a good monitoring, that should not appear as an error -
SOAP Adapter XI 3.0 - HTTP 200 response fails
We have a scenario where a request message is sent successfully to a URL by the SOAP Adapter.
However, the response message has an HTTP response of 200 (meaning ok) which is not handled correctly by the
SOAP Adapter.
The error text shown in SXMB_MONI is:
com.sap.aii.af.ra.ms.api.DeliveryException: Failed to call the endpoint HTTP 200 OK
Is there something I am missing in the configuration to allow HTTP responses in the SOAP Adapter ? It is very odd that the SOAP Request works fine, but the SOAP Response does not.
Any ideas anyone ?
Kind regards
Colin.Hi Bill
1. synchronous out / in
2. yes
3. working fine
following the way out to the elocateserver system is working fine.
The soap is working and the responce from the elocteserver is fine . But when the message is pick put the Timeout show up.
below is the Responce from elocateserver to xi
Hope this will help you
thanks olaf
Help
!http://sapnt09:50200/sap/public/icman/img/theme.jpg|alt=SAP|width=122 height=61 border=0 |src=http://sapnt09:50200/sap/public/icman/img/theme.jpg!
500 Connection timed out
Connection timed out (-5)
Error:
-5
Version:
6040
Component:
ICM
Date/Time:
Sat Oct 16 06:13:25 2004
Module:
icxxthr.c
Line:
2556
Server:
sapnt09_M64_02
Detail:
Connection to partner timed out
© 2001-2003, SAP AG -
HTTP 200 response - Connection Failure - CF10 local Tomcat
Hello,
I am invoking a webService, FirstData to be exact. It's SSL. I am invoking properly, and FirstData is seeing my request as valid and successful, but the response comes back with a 200 and the filecontent is "Connection Failure". No SOAP structure in the response. I found that this was a bug with CF8 which I'd expect to be cleared up in CF10. Is there a workaround? I've attempted passing headers in various ways but it continues to fail.
<cfhttp url="XXX" method="POST" username="XXX" password="XXX" path="XXX" file="XXX" resolveurl="false" clientCert="XXX" clientCertPassword="XXX">
<cfhttpparam type="XML" value="#myXML#">
<cfhttpparam type="header" name="Accept-Encoding" value="deflate;q=0" />
<cfhttpparam type="header" name="TE" value="deflate;q=0" />
</cfhttp>
Response
struct
Charset
utf-8
ErrorDetail
[empty string]
Filecontent
Connection Failure
Header
HTTP/1.1 200 OK Date: Fri, 22 Mar 2013 19:25:10 GMT Server: Apache/2.4.2 X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1 Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Length: 852 Connection: close Content-Type: text/xml;charset=utf-8
Mimetype
text/xml
Responseheader
struct
Accept
text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection
close
Content-Length
852
Content-Type
text/xml;charset=utf-8
Date
Fri, 22 Mar 2013 19:25:10 GMT
Explanation
OK
Http_Version
HTTP/1.1
Server
Apache/2.4.2
Status_Code
200
X-Powered-By
Servlet 2.5; JBoss-5.0/JBossWeb-2.1
Statuscode
200 OK
Text
YESHi
Might be you are processing huge data because of this you are getting this error.
Regards
Dheeraj Kumar -
Flash remoting returns HTTP code 200, classified as error
Hi,
Our problem is with an older application, originally created with Flash MX2004. It is an application which schools use and communicates with our Java services. We've always had some issues with remoting errors but it seems this past school year has been much worse.
The issue does not happen all the time and the schools have reported it as being sporadic. We have been working with the schools to see if we can track down the issue and what we’ve found is that the data is coming back to the application correctly but it is somehow interpreted as an error within the Macromedia classes. Currently, the schools are reporting that their labs which have IE8 seem to be getting the issue while it is OK in the labs which still run IE7.
Has anyone heard of a similar issue in that they can point us in the right direction to get this resolved?to add to the above details, when i look at the headers of the response object i see the following:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Content-Type: application/x-amf
Content-Length: 18893
Date: Wed, 07 Oct 2009 15:52:24 GMT
Cache-Control: no-cache
but when i look at the properties of the Connection object i see:
contentType: application/x-fcs
Is it normal for it to be different like this? -
Hi,
I need help ... please ... I have to use socket and not HTTPURLConnection
I try to connect with a socket to a web server (apache2) and request one page but two times.
The first time it works well but the second one it doesn't ... I get a null message.
Why ?
Does the server close the socket as soon as the page is sent ?
If it doesn't how I can continue sending and receiving data on the same socket ?
Here is my code:
package test;
import java.net.*;
import java.io.*;
public class Test
private String laRequete = new String(
"POST http://localhost:5577/Test/ HTTP/1.0\r\n"+
"Host:localhost:5577\r\n"+
"\r\n");
PrintWriter laSortie;
BufferedReader lEntree;
Socket laSocketTCP;
public Test()
String tmp;
try
laSocketTCP = new Socket("localhost", 5577);
laSortie = new PrintWriter(laSocketTCP.getOutputStream());
lEntree = new BufferedReader(new InputStreamReader(laSocketTCP.getInputStream()));
laSortie.println(laRequete);
laSortie.flush();
// Premier essai OK
System.out.println(lEntree.readLine());
while((tmp = lEntree.readLine()) != null)
System.out.println(tmp);
// Second essai => Not OK
laSortie.println(laRequete);
laSortie.flush();
System.out.println(lEntree.readLine());
while((tmp = lEntree.readLine()) != null)
System.out.println(tmp);
catch (Exception e)
e.printStackTrace();
public static void main(String args[])
Test tp = new Test();
Here is the result of the execution
HTTP/1.1 200 OK
Date: Wed, 29 Sep 2004 08:35:35 GMT
Server: Apache/2.0.51 (Win32)
Last-Modified: Wed, 29 Sep 2004 08:27:57 GMT
ETag: "23a46-9a-56c93f9a"
Accept-Ranges: bytes
Content-Length: 154
Connection: close
Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Index Test 1 </TITLE>
</HEAD>
<BODY>
Test 1
</BODY>
</HTML>
null
Thanks, bye.Send an HTTP 1.1 request instead of a 1.0 request.
HTTP 1.0 does not support keeping the connection open, so yes, the server closes the connection.
Dave. -
Solaris HTTP - MS IIS EOF bug, timeout failures
Greetings,
Experiencing what appears to be an "HTTP EOF" problem
running on Solaris 2.7 (Apache ws) for several months.
When my Perl script requests image files, from select remote
servers, the requests hang as if waiting on the last packet to be received.
The images are exclusivly owned by the people that run my cgi script. This
is strictly enforced.
Problem is recreated it using LWP, WGET and LYNX,all fail
the same way. (please see trace data below)
I have a simple script with blocks of urls from several sites
using LYNX with trace on that shows the failure every time.
(please see below)
It works on all non Solaris platforms that I, and others, have tried
(WIN, AIX, etc)
An HTTP 200 is always recieved, with the proper length specified in the
headers.
The hang occurs on what appears to be the last packet (as seen from
LYNX trace)
Sometiimes requests complete after several minutes, with a partial image
file. Occasionally a few requests work fine.
I've seen other newsgroup appends with the exact problem, no solution
Others equate the problem strictly with requests from Solaris to an MS
web server (see related append below)
I can't get my web hosting company to move on this, they've run my
sample app and agree "there's a problem". I've appended this on several
newsgroups in the past, others have run my script, lot of discussion and agreement that there's a problem but to date no solutions.
Looks like an operating system bug to me.
I've tried searching Sun's site for a possible answer but got lost each
time. Not sure how to searh for known fixes, assume I can't open a problem report since I don't own the OS license.
Another related append is included below along with my test script and
trace output.
Any assistance or advice is most appreciated.
Thank you,
Steve Borruso
From a libwww newsgroup append .....On Solaris, an LWP request sometimes fails (ie. reports a server error)
when the server is fine, b/c of some interaction between the OS and the
server response. (See below for more info.) In fact, LWP is receiving data,
but the data is improperly terminated and LWP times out.
There is an interaction between Solaris and certain web servers (notably
Microsoft-IIS/4.0) where the response to a GET comes back improperly
terminated. You can observe this independently of LWP by doing a "telnet
www.ndu.edu 80",
and then "GET http://www.ndu.edu/ndu/inss/strforum/forum83.html"
You will see telnet receive the response (it's a 404), but then (usually
but not always) fail to terminate. As far as I know, you will only see this
on Solaris (I'm on Solaris 7, have heard similar problems w/ 6); I've tried
same under Linux and haven't seen this problem. I have seen this on a
number of other sites.
Trace output from a past run of my script ...
GET /Sell/SSProfiles/10011921/Images/hugedragonbeads.JPG HTTP/1.0
Host: images.auctions.goto.com
Accept: text/html, text/plain, text/sgml, text/x-sgml,
application/x-wais-source
, application/html, */*;q=0.001
Accept-Encoding: gzip, compress
Accept-Language: en
Negotiate: trans
User-Agent: Lynx/2.7.1 libwww-FM/2.14
Sending HTTP request.
HTTP: WRITE delivered OK
HTTP request sent; waiting for response.
HTTP: Trying to read 1023
HTTP: Read 1023
Read 1023 bytes of data.
HTTP: Rx: HTTP/1.1 200 OK
HTTP: Scanned 2 fields from line_buffer
--- Talking HTTP1.
HTTP/1.1 200 OK
HTFormat: Constructing stream stack for www/mime to www/present
StreamStack: found weak wildcard match: www/present
StreamStack: found exact match: www/mime
HTMIME: Server: Microsoft-IIS/4.0
Date: Fri, 24 Nov 2000 02:38:17 GMT
Content-Type: image/jpeg
Accept-Ranges: bytes
Last-Modified: Tue, 15 Aug 2000 22:32:20 GMT
ETag: "38bfa4ac87c01:1165"
Content-Length: 17935
����
HTMIME: Got 'S' at beginning of line, state now S
HTMIME: Was S, found E, state now SE'
HTMIME: Was SE, foun<pre>
Sending trace output and code again (hopefully formatted)
Trace output from a past run of my script ...
GET /Sell/SSProfiles/10011921/Images/hugedragonbeads.JPG HTTP/1.0
Host: images.auctions.goto.com
Accept: text/html, text/plain, text/sgml, text/x-sgml,
application/x-wais-source
, application/html, */*;q=0.001
Accept-Encoding: gzip, compress
Accept-Language: en
Negotiate: trans
User-Agent: Lynx/2.7.1 libwww-FM/2.14
Sending HTTP request.
HTTP: WRITE delivered OK
HTTP request sent; waiting for response.
HTTP: Trying to read 1023
HTTP: Read 1023
Read 1023 bytes of data.
HTTP: Rx: HTTP/1.1 200 OK
HTTP: Scanned 2 fields from line_buffer
--- Talking HTTP1.
HTTP/1.1 200 OK
HTFormat: Constructing stream stack for www/mime to www/present
StreamStack: found weak wildcard match: www/present
StreamStack: found exact match: www/mime
HTMIME: Server: Microsoft-IIS/4.0
Date: Fri, 24 Nov 2000 02:38:17 GMT
Content-Type: image/jpeg
Accept-Ranges: bytes
Last-Modified: Tue, 15 Aug 2000 22:32:20 GMT
ETag: "38bfa4ac87c01:1165"
Content-Length: 17935
����
HTMIME: Got 'S' at beginning of line, state now S
HTMIME: Was S, found E, state now SE'
HTMIME: Was SE, found R, checking for 'ver'
HTMIME: PICKED UP Server: 'Microsoft-IIS/4.0'
HTMIME: Got 'D' at beginning of line, checking for 'ate:'
HTMIME: PICKED UP Date: 'Fri, 24 Nov 2000 02:38:17 GMT'
HTMIME: Got 'C' at beginning of line, state now C
HTMIME: Was C, found O, state now CO'
HTMIME: Was CO, found N, state now CON
HTMIME: Was CON, found T, checking for 'ent-'
HTMIME: in case CONTENT_
HTMIME: Was CONTENT_, found T, state now CONTENT_T
HTMIME: in case CONTENT_T
HTMIME: Was CONTENT_T, found Y, checking for 'pe:'
HTMIME: PICKED UP Content-Type: 'image/jpeg'
HTMIME: Got 'A' at beginning of line, state now A
HTMIME: Was A, found C, checking for 'cept-ranges:'
HTMIME: PICKED UP Accept-Ranges: 'bytes'
HTMIME: Got 'L' at beginning of line, state now L
HTMIME: Was L, found A, checking for 'st-modified:'
HTMIME: PICKED UP Last-Modified: 'Tue, 15 Aug 2000 22:32:20 GMT'
HTMIME: Got 'E' at beginning of line, state now E
HTMIME: Was E, found T, checking for 'ag:'
HTMIME: PICKED UP ETag: '38bfa4ac87c01:1165'
HTMIME: Got 'C' at beginning of line, state now C
HTMIME: Was C, found O, state now CO'
HTMIME: Was CO, found N, state now CON
HTMIME: Was CON, found T, checking for 'ent-'
HTMIME: in case CONTENT_
HTMIME: Was CONTENT_, found L, state now CONTENT_L
HTMIME: in case CONTENT_L
HTMIME: Was CONTENT_L, found E, checking for 'ngth:'
HTMIME: PICKED UP Content-Length: '17935'
Converted to integer: '17935'
HTMIME: MIME Content-Type is 'image/jpeg', converting to 'www/present'
HTFormat: Constructing stream stack for image/jpeg to www/present
StreamStack: found weak wildcard match: www/present
StreamStack: Using www/present
Read 437 of 17935 bytes of data.
Read 1897 of 17935 bytes of data.
Read 3357 of 17935 bytes of data.
Read 4817 of 17935 bytes of data.
Read 6541 of 17935 bytes of data.
Read 8001 of 17935 bytes of data.
Read 10209 of 17935 bytes of data.
Read 11669 of 17935 bytes of data.
Read 13877 of 17935 bytes of data.
Read 15337 of 17935 bytes of data.
Read 17140 of 17935 bytes of data.
(never completes after this, if I "cntrl C" I get a partial image file)
Here's my script .......
#!/usr/bin/perl -w
@URLValue=();
# Images from auctions.goto -
#$URLValue[0] =
'http://images.auctions.goto.com/Sell/SSProfiles/10011921/Images/hugedragonbeads.JPG';
#$URLValue[1] =
'http://images.auctions.goto.com/Sell/SSProfiles/10011921/Images/yellowribbona.JPG';
#$URLValue[2] =
'http://images.auctions.goto.com/Sell/SSProfiles/10011921/Images/jcharmsNov12E.JPG';
#$URLValue[3] =
'http://images.auctions.goto.com/Sell/SSProfiles/10011921/Images/turquoise8mma.JPG';
# Images from AOL -
#$URLValue[0] = 'http://members.aol.com/shasta4737/nicole1.jpg';
#$URLValue[ -
How do I add data to HTTP response headers in Tomcat?
Hello
I am in the process of making our site Platform for Privacy Preferences(P3P) compliant. We are running Tomcat 3.2.2(standalone) on a Linux box. I am looking for information regarding adding data to HTTP header responses(see example below). One of the aspects of P3P compliancy is referencing where a Policy is located and referencing the "Compact Policy" via the "CP" tag. I need to add these values and as I am
new to Tomcat I need know where to find the header information.
<!-- example -->
HTTP/1.1 200 OK
P3P: policyref="http://somesite.com/P3P/PolicyReferences.xml",
CP="NON DSP COR CURa ADMa DEVa CUSa TAIa OUR SAMa IND"
Content-Type: text/html
Content-Length: 8104
Server: ...
...content...
<!-- end example -->
Any suggestions would be appreciated.
Joe Dalessandro
e: [email protected]Hmm... If you check your server.xml -file, you'll probably find that Tomcat has been configured to use org.apache.tomcat.service.http.HttpConnectionHandler as the connection handler (right under the "Connector classname" value)...
Would it be possible to tweak that handler or extend it in such a way that you could add your headers?
Unfortunately I don't work with Tomcat myself, otherwise I could try it...
If this seems too complicated, I'd just recommend you to install Apache, and do it there... -
Issue with regexes in http health probes on ACE 4710
Folks,
We're currently experiencing fairly bizarre behavior when attempting to set up http probes that expect a regexp. Namely, if we specify a regexp, the probe *always* passes, regardless of status code and regardless of whether or not the message actually matches the pattern. Doing 'no expect regexp' fixes this behavior (by which I mean that the 'expect status' rules work again).
We haven't noticed until now because this is the first time we've tried to set up a probe that does this. Are we missing something? Is this a known issue with our current firmware version?
Sincerely,
Patrick T. Ramsey
# show run probe | begin HTTP-nfscheck | end regex
Generating configuration....
probe http HTTP-nfscheck
description Simple HTTP probe to check nfs mount health
port 80
interval 15
passdetect interval 20
request method head url /nfs-health-check/
open 1
expect regex "^ureytgraeuikghfdjg$"
# sh ver
Cisco Application Control Software (ACSW)
TAC support: http://www.cisco.com/tac
Copyright (c) 1985-2009 by Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software are covered under the GNU Public
License. A copy of the license is available at
http://www.gnu.org/licenses/gpl.html.
Software
loader: Version 0.95.1
system: Version A3(2.4) [build 3.0(0)A3(2.4) adbuild_11:46:02-2009/09/27_/auto/adbu-rel2/rel_a3_2_3_throttle/REL_3_0_0_A3_2
_4]
system image file: (hd0,1)/c4710ace-mz.A3_2_4.bin
Device Manager version 1.2 (0) 20090925:1550
installed license: no feature license is installed
Hardware
cpu info:
Motherboard:
number of cpu(s): 2
Daughtercard:
number of cpu(s): 16
memory info:
total: 6226388 kB, free: 3972668 kB
shared: 0 kB, buffers: 22020 kB, cached 0 kB
cf info:
filesystem: /dev/hdb2
total: 861668 kB, used: 728656 kB, available: 89240 kB
last boot reason: Unknown
configuration register: 0x1
ldbottom kernel uptime is 325 days 3 hours 46 minute(s) 43 second(s)I also went through a similar issue in which we need to probe the real server PESERVER01 and if the real server replies with the keyword "PE Server" in the HTTP content then the probe should be passed successful.
In my case the real server was listening on port 32776 for HTTP service so we configured the serverfarm as below,
serverfarm host SF-TEST-32776
description SF-TEST-32776
failaction purge
probe PE-SERVER-STRING
rserver PESERVER01 32776
inservice
And the TCP probe as below,
probe tcp PE-SERVER-STRING
port 32776
send-data GET /IOR/ping HTTP/1.1 <<== command should not be in inverted commas
expect regex "PE Server"
The above probe worked really well and when we checked the probe status it was marking as success. I also tried changing the regex from "PE Server" to "Vishal12345" and it was failing as expected because there was no such keyword in the HTTP content.
==================================================================================
T2-LB02# sh probe PE-SERVER-STRING
probe : PE-SERVER-STRING
type : TCP
state : ACTIVE
port : 32776 address : 0.0.0.0 addr type : -
interval : 15 pass intvl : 60 pass count : 3
fail count: 3 recv timeout: 10
------------------ probe results ------------------
associations ip-address port porttype probes failed passed health
------------ ---------------+-----+--------+--------+--------+--------+------
serverfarm : SF-TEST-32776
real : PESERVER01[32776]
10.10.10.1 32776 PROBE 105 0 105 SUCCESS
==================================================================================
I was struggling with this issue from long time. Even raised couple of Cisco TAC cases with no luck. The most important thing here is to identify the exact command to be send to real server like GET /IOR/ping HTTP/1.1 that we used here.
To collect this command I did packet capture on one of the client machine and then tried to open the URL from real server which can return the string "PE Server". Then analyzed the captures in Wireshark and checked the HTTP data with follow the TCP stream option in which I seen the below data, which gives the command to be send in probe as well as the string we should expect.
==================================================================================
GET /IOR/ping HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Host: 10.144.70.85:32776
Accept: */*
HTTP/1.0 200 OK
Content-type: text/html
Ping
PE Server
WRVFKO11 [Win32 Server Production (3 silos) (Oracle Blob 512 MB) -- {dap451.007.028 dap451.004.002 pe451.003.010x pui451.003.010 pui451.001.004} Mar 9 2012 15:07:53 en ]
===================================================================================
Please try this and see if it helps you.
Thanks,
Vishal Babrekar -
Socket communication with HTTP server : how to send a form variable ?
Hi everyone,
I'm trying to program a Socket application that calls a CGI programmed in ASP and sends a variable with some content via the POST HTTP method.
My problem is that I'm unable to retrieve my variable content in the CGI. I don't know what I'm doing wrong when sending my variable. Here are the main steps of my application
[Client side]
- Create an URL
- Open a connection
- Send header info with variable name and content via POST method
- Read server response
[Server side]
- Request the variable
- Store its content in a file
Here's the code of my class :
import java.net.*;
import java.io.*;
public class SocketTest{
public static void main(String args[]){
//create the URL
URL url = null;
String strURL = "http://192.168.1.11/htmleditor/cgi.asp";
try{
url = new URL(strURL);
catch(MalformedURLException exc){
System.out.println("Invalid URL : " + strURL);
//create a socket
Socket socket = null;
try{
int port = url.getPort();
if (port < 0){
port = 80;
socket = new Socket(url.getHost(), port);
catch(Exception exc){
exc.printStackTrace();
OutputStream out = null;
InputStream in = null;
try{
//configure request
String data = "htm_content=toto";
String request = "POST "+ url + " HTTP/1.0\r\n" +
"Accept: */*\r\n" +
"Content-length: " + String.valueOf(data.length()) + "\r\n" +
"Host: JAVA_HOST\r\n" +
"User-Agent: Generic\r\n\r\n" +
"htm_content=toto";
//send request
out = socket.getOutputStream();
out.write(request.getBytes());
out.flush();
//read server response
in = socket.getInputStream();
int bufferSize = 1024;
byte responseBytes[] = new byte[bufferSize];
while ((bufferSize = in.read(responseBytes)) > 0){
System.out.print(new String(responseBytes, 0,bufferSize));
catch(IOException exc){
System.out.println(exc);
//Close streams and sockets
try{
in.close();
catch(IOException exc){
exc.printStackTrace();
try{
out.close();
catch(IOException exc){
exc.printStackTrace();
try{
socket.close();
catch(IOException exc){
exc.printStackTrace();
}Here's the code of my ASP CGI page (called cgi.asp) :
//CGI.ASP - Begin
<%
Option Explicit
Dim objFso, objFile, strHtmContent, strFileName
On Error Resume Next
Set objFso = Nothing
Set objFile = Nothing
Set objFso = Server.CreateObject("Scripting.FileSystemObject")
strFileName = Server.MapPath("htm_content.htm")
Set objFile = objFso.CreateTextFile(strFileName, True)
strHtmContent = Request("htm_content")
If len(strHtmContent) > 0 Then
objFile.Write strHTMContent
Else
objFile.Write "NO CONTENT RECEIVED"
End If
%>
<html>
<head>
<script language="javascript">
function closeAll()
window.close();
return 0;
</script>
<body onLoad="javascript:closeAll();">
</body>
</html>
//CGI.ASP - ENDWhen I execute my SocketTest app I get this output:
F:\JavaDev\htmleditor\docs>java SocketTest
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Fri, 12 Jul 2002 15:31:56 GMT
Connection: Keep-Alive
Content-Length: 192
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQQGGGKMU=MMPPMLEDGDEMCCJDBGOKMNDC; path=/
Cache-control: private
<html>
<head>
<script language="javascript">
function fermerTout()
window.close();
return 0;
</script>
<body onLoad="javascript:fermerTout();">
</body>
</html>
The file "htm_content.htm" is created but it has this content :
NO CONTENT RECEIVED
This means the server was unable to retrieve the content of the variable called "htm_content"
REM : the variable is called like this 'cause I intend to use it to send HTML content
Any idea of what I'm doing wrong ?
Thanxs in advance for any help,
Diego TERCEROFor the POST request you'll only need (with HTTP 1.0)
String request = "POST "+ url + " HTTP/1.0\n" +
"Content-type: application/x-www-form-urlencoded\n" +
"Content-Length: " + String.valueOf(data.length()) + "\n" +
"\n" +
data;
Note the Content-type header.
Fred (Donne les duke�)
Maybe you are looking for
-
Cannot completely uninstalled trial version of Adobe Acrobat Professional 9
Hi, I've downloaded Adobe Acrobat Pro 9 as a 30-day trial. When 15 days or so have passed, I've decided to discontinue my use and uninstalled the trial version via Control Panel - Programs and Features. However the program refuses to go away. When I
-
Procedure to execute other procedures in a package
I have written the following package: CREATE OR REPLACE PACKAGE NCI_LOAD_PKG AS PROCEDURE LOAD_W; PROCEDURE LOAD_X; PROCEDURE LOAD_Y; PROCEDURE LOAD_Z; END NCI_LOAD_PKG; I want to know what is the best way to call these procedures. Do I need to wirte
-
Hi, I'm hoping someone can help me out with this one. I have a project where I need to interface with a website, and extract particular information for users. This is a client side application On one particular page the website wants to send me a coo
-
Problems with video playback in iMovie - I have audio with black screens
Hello I can see all of the thumbnails of my iMovie projects. However, when I try to play them, raher in the preview screen in iMovie or anyother way (ful screen etc) - I can't see anything, it's just a black screen. I have audio but no visual images.
-
Transferring downloaded itune to windows movie maker
I am wanting to use a downloaded song for a DVD project I am making, but I get a message stating the song cannot be used because of it's format?!? I am not a computer genius, so I am wondering if there is a way to use a song that has been downloaded