I am trying to write a shell script to parse the post request data that it received to a xml file. Below is the post request data that script is receiving.
!/bin/sh
echo "" > "file.xml"
if [ "$REQUEST_METHOD" = "POST" ]; then
if [ "$CONTENT_LENGTH" -gt 0 ]; then
while read -n $CONTENT_LENGTH POST_DATA <&0
do
echo "$POST_DATA" >> "file.xml"
done
fi
fi
How can I parse it and dump it into xml? Any reference?
I have a PERL script from which I need to make a HTTP request to Web Servlet (Essentially a URL with variables and values like &Variable1=AAAAAA&Variable2=BBBBBBBBB&Variable3=CCCCCCC). The Web servlet returns an XML result which needs to be parsed for the contents of the result within the program.... (15 Replies)
Hi everybody,
I have a *.vbs file which I want to run automatically. I want to know if there is anyway to implement the given example
for e.g "http://255.255.255.55/script.vbs"
what I mean is does anyone know how to make an http request from a unix script??
Thanks in advance!!!!!!!!!!! (1 Reply)
Hi,
i need a guide how to write a script which i can do a http request. Let say the request look like below;
http://www.test.com?txid=1&type=service&server=linux
I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Hi,
Maybe it's a stupid question, anyway here goes..
I have an Apache web server on Solaris box, let's say A, with a public ip
and a web application on a Linux box, uhmmm B, on a private lan with a private ip.
I want the people from outside to connect to the app, but its inside the lan,... (4 Replies)
Hi all,
Im trying to make an http get request to a web service from a linux machine like below and i get ERROR 500
wget http://10.1.21.236:8585/pns.asmx/Sen...&msgBody=werty
25018
$ --19:06:32-- http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA
Connecting to 10.1.21.236:8585...... (1 Reply)
Hi,
I am using curl to hit a url using http in solaris 10 using commandline, I want to transfer an attachment(using multipart curl -F) also as a part of the request. If anyone has used kindly help me with the syntax. I am using below command:
Code:
/usr/local/bin/curl -v... (1 Reply)
Hello
I am trying to communicate with a server that is ready to accept HTTP GET requests and send back data per the request. However, I have very little experience in socket programming and I don't really know how to debug this. Googling on the web hasn't yielded much, except people saying I... (2 Replies)
I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in).
... (2 Replies)
Discussion started by: jurgen
2 Replies
LEARN ABOUT DEBIAN
ost_mimeformdata
ost::MIMEFormData(3) Library Functions Manual ost::MIMEFormData(3)NAME
ost::MIMEFormData -
This is a document part type for use in submitting multipart form data to a web server.
SYNOPSIS
#include <mime.h>
Inherits ost::MIMEItemPart.
Public Member Functions
void head (std::ostream *output)
Stream header, Content-Disposition form-data.
void body (std::ostream *output)
Stream content (value) of this form data field.
MIMEFormData (MIMEMultipartForm *top, const char *name, const char *content)
Construct form data field part of multipart form.
Protected Member Functions
virtual ~MIMEFormData ()
Protected Attributes
const char * content
const char * name
Detailed Description
This is a document part type for use in submitting multipart form data to a web server.
Author:
David Sugar dyfet@ostel.com multipart document part for web form data field.
Constructor & Destructor Documentation
virtual ost::MIMEFormData::~MIMEFormData () [protected], [virtual]
ost::MIMEFormData::MIMEFormData (MIMEMultipartForm *top, const char *name, const char *content)
Construct form data field part of multipart form. Parameters:
top multipart form this is part of
name of form data field
content of form data field
Member Function Documentation
void ost::MIMEFormData::body (std::ostream *output) [virtual]
Stream content (value) of this form data field. Parameters:
output stream to send body to.
Implements ost::MIMEItemPart.
void ost::MIMEFormData::head (std::ostream *output) [virtual]
Stream header, Content-Disposition form-data. Parameters:
output stream to send header to.
Reimplemented from ost::MIMEItemPart.
Member Data Documentation
const char* ost::MIMEFormData::content [protected]
const char* ost::MIMEFormData::name [protected]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::MIMEFormData(3)