I am trying to post an xml file (utf-16 encoded) using curl to a REST service. The REST service is expecting 'multipart/form-data' content type.
However, i am getting 500 Internal Server error while running the script.
Through chrome's add on 'postman app' i am able to successfully post the xml to the REST service.
Unable to figure out the issue causing the 500 error. Kindly help me in resolving this issue.
Regards
Anooja
Last edited by Scott; 04-28-2014 at 09:19 AM..
Reason: Please use code tags
Hello,
I have searched for a good part of the day, but cannot seem to find an answer to this. I hope this is an appropriate forum for my question.
I am wanting to download a blog web page using a script. It requires username and password login. I have tried the following (an example) to no... (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 all.
I have an incredible number of servers that I need to change a parameter on using a web interface. I'd like to be able to do this via curl, but I'm having some trouble. I filled out the form and hit update while snooping (tcpdump) my interface. That gave the the following as what is... (0 Replies)
I am trying to write a shell script to use curl in order to automate downloading data from a website. The URL with the post form is here: http://try-db.org/de/InfoBySpecies.php .
I have a list of about 1800 different species I want to check. For Example, choose the first species and use the... (2 Replies)
how to make the bash script ?
http://server.com/mysql.php
POST /mysql.php HTTP/1.1
Host: server.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language:... (1 Reply)
i'm using this command to post data to a remote host:
wget --post-data="My Data" http://<my-ip>:80 -O /dev/null -q
and
curl --data "My Data" http://<my-ip>:80
however, when i run the above, i see the following in my access log on the remote host:
Wget:
10.10.10.10 - - "POST /... (1 Reply)
HI All,
i want to asking about my case , how to post content file of data using curl.
currently if i wanna post data file , i can use this command below :
curl --cacert maxaj.cer -X POST -F 'fileupload=@/data/report_3300_xxx/log/traffic_3300_20180319_1051.txt'... (0 Replies)
I'm having an issue with curl post form, I dont' understand what I'm mising. I would like to send a post command login/password to a form, quite simple in the paper.
URL : http: // <myebsite> / login
Here the form source code :
<form action="/login_check" method="post">
<input... (3 Replies)
Hi,
I write a new thread to discuss about my closed topic with new information ( /280990-curl-post-form-issue.html )
The previous post was closed because of missing informations, I didn't have access yet to server logs.
----------------------------------------------------------------------... (4 Replies)
Discussion started by: Fred13
4 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)