× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



All,

Can you please look at the piece of code...

Client Request:
C eval request = 'POST '+ %trim(file) +
C ' HTTP/1.1' + x'0D25'
C exsr sendDta

C eval request = 'Host: ' + %trim(host) +
C x'0D25'
C exsr sendDta

C eval request='Content-Type: multipart/form-dat
C 'boundary=' +
C 'AaB03x' +
C x'0D25'
C exsr sendDta

C eval request = 'Content-Length: 59' + x'0D25'
C exsr sendDta

C eval request ='--AaB03x' + x'0D25'
C exsr sendDta
C eval request = 'Content-Disposition: '+
C 'form-data; name='+'"version"'+
C x'0D25'
C exsr sendDta

C eval request ='--AaB03x' + x'0D25'
C exsr sendDta
C eval request = 'Content-Disposition:'+
C ' form-data; name='+
C ' "forx"' + x'0D25'
C exsr sendDta

C eval request = 'Content-Type: text/xml;' +
C ' charset= utf-8, boundary = BbC04y' +
C x'0D25'
C exsr sendDta

C eval request ='--BbC04y' + x'0D25'
C exsr sendDta
C eval request = 'Content-Disposition:'+
C ' attachment; filename = ' +
C '"/bala/test.xml"' +
C x'0D25'+ x'0D25'
C exsr sendDta

C exsr sendFile (Reading IFS file and send thro
socket)
C eval request = x'0D25'
C exsr sendDta

In sendDta is converting ascii to ebcdic format and write thro socket.

Response from the server
HTTP/1.1 400 Bad Request
Date: Mon, 28 Jan 2008 14:16:28 GMT
Server: Apache
Content-Length: 302
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
<P>Your browser sent a request that this server could not understand. <BR
/>
Request header field is missing ':' separator.<br/>
<pre>
--AaB03x</pre>
</P>
</body></html>

XML File
<?xml version="1.0" encoding="utf-8"?><ReqMsg>Z</ReqMsg>

What could be the problem? I'm trying for the past two days... Help
Plz....

Regards
Balasubramanian PS
-------------------------------------------------------------------------------------------------------------------
Dream!!! is not what you see in sleep.... is the thing which does not let
you sleep

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.