cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Malformed request problem

From: Amit Hooja <amithooja_at_dil.in>
Date: Thu, 7 Mar 2002 16:06:04 -0800

Hi
 thanx for you quick reply

 I am writing mail forwarder for mail.rediff.com
 I able to logged in and list message urls successfull but when in try to
 retrieve the url I get a page conntaing error malformed request whose
status
 is internal server errror .

 urls are as follows

 originial---->

formname=read_msg&folder=Inbox&file_name=Welcome.old&login=testdil&session_i
 d=1$1$E$Tvq1hBwyBF.PUA0L33GO90&index=1&function_name=''&SrtFld=2&SrtOrd=1

 escaped ->

http://f2mail.rediff.com/cgi-bin/folder.cgi?formname%3Dread_msg%26folder%3DI

nbox%26file_name%3DWelcome.old%26login%3Dtestdil%26session_id%3D1%241%24E%24

Tvq1hBwyBF.PUA0L33GO90%26index%3D1%26function_name%3D''%26SrtFld%3D2%26SrtOr
 d%3D1

 the error comes in an html page returend by retrieving this url

 curl version ->

 curl 7.9.2 (i686-pc-linux-gnu) libcurl 7.9.2 (OpenSSL 0.9.6)

Amit Hooja
System adminsitrator & Integrator
Data Infosys Ltd.
Tonk Road , Jaipur
Phone : 91-0141-702311,702312,702313
##############################################

[Without prejudice to the generality of the contents herein, this
communication does not attach any legal liability on the originator thereof.
This communication contains information, which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you have received this communication by error, please delete the email and
destroy any copies of it.]

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "Amit Hooja" <amithooja_at_dil.in>
Cc: "Curl Mailinglist" <curl_at_contactor.se>
Sent: Thursday, March 07, 2002 1:50 AM
Subject: Re: Malformed request problem

> On Thu, 7 Mar 2002, Amit Hooja wrote:
>
> > I am trying to retrieve a url using curl cmdline embeded in perl script
the
> > url uses session id , i am doing uri_escape on url and passing it to
curl
> > cmd .
> >
> > and getting malformed request
>
> It would make it a lot easier if you could show us more details. How does
the
> malformed request look like (using -v)? What does your original/unescaped
URL
> look like?
>
> Are you sure your "uri_escape" doesn't mangle the URL to prevent it from
> working properly?
>
> Please also include details like operating system and which curl version
> you're using.
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
>
>
Received on 2002-03-07