473,558 Members | 2,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange type of POST

I have to log into a website and retrieve some information. The problem is
that the post isn't "normal". I'm used to passing post values in the form
of: Variable1=Value 1&Variable2=Val ue2 etc.

I used Live Http Headers to retrieve the POST information, I included it at
the end of this message.
Can anyone tell me how to make THIS kind of post?

Another thing,
"Content-Type: multipart/form-data;
boundary=---------------------------277301736415408 "
This is the first time I see "boundary" as part of the post. What does this
mean?

Thx, here is a copy of the http post, I just replaced the UserName and
Password with bogus ones and the website address with "<Address Removed>"

btw, in Internet Explorer ieHTTPHeaders reports the same post information. I
say this this because at first I thought it was Mozilla the one who
"screwed" up the format :p
----------------------------------------------------

https://<Address Removed>/cgi-bin/login.pl?182425 407173832-L_238_0-1

POST /cgi-bin/login.pl?182425 407173832-L_238_0-1 HTTP/1.1
Host: <Address Removed>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3)
Gecko/20041001 Firefox/0.10.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://<Address Removed>/cgi-bin/login.pl
Content-Type: multipart/form-data;
boundary=---------------------------277301736415408
Content-Length: 359
-----------------------------277301736415408
Content-Disposition: form-data; name="UserName"

MyUserName
-----------------------------277301736415408
Content-Disposition: form-data; name="Password"

MyPassword
-----------------------------277301736415408
Content-Disposition: form-data; name="Comments"

MyComments
-----------------------------277301736415408--

HTTP/1.x 200 OK
Date: Mon, 01 Nov 2004 15:46:56 GMT
Server: Stronghold/4.0 Apache/1.3.22
Expires: Monday, 1-November-104 13:46:57 GMT
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
Nov 18 '05 #1
1 2961
its a standard multipart/form-data form POST. this format is usually used
when there is a <input type=file> control on the page. the post data looks
like any generic multipart mime attachment email message.

a boundary is defined in the header and is is used to delimit the mime-type
data. the mime data starts with a standard mime content header.

note: form-data is the form post data. the mime headers, data and boundary
are delmited by <lf>'s. there is an additional <lf> after the headers before
the data starts. files or attachments are usually base64 encoded (i forget
the mime-header, but you can look it up).

-- bruce (sqlwork.com)
"Manuel" <My@NoMailLand. com> wrote in message
news:p_******** ************@gi ganews.com...
I have to log into a website and retrieve some information. The problem is
that the post isn't "normal". I'm used to passing post values in the form
of: Variable1=Value 1&Variable2=Val ue2 etc.

I used Live Http Headers to retrieve the POST information, I included it at the end of this message.
Can anyone tell me how to make THIS kind of post?

Another thing,
"Content-Type: multipart/form-data;
boundary=---------------------------277301736415408 "
This is the first time I see "boundary" as part of the post. What does this mean?

Thx, here is a copy of the http post, I just replaced the UserName and
Password with bogus ones and the website address with "<Address Removed>"

btw, in Internet Explorer ieHTTPHeaders reports the same post information. I say this this because at first I thought it was Mozilla the one who
"screwed" up the format :p
----------------------------------------------------

https://<Address Removed>/cgi-bin/login.pl?182425 407173832-L_238_0-1

POST /cgi-bin/login.pl?182425 407173832-L_238_0-1 HTTP/1.1
Host: <Address Removed>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3)
Gecko/20041001 Firefox/0.10.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://<Address Removed>/cgi-bin/login.pl
Content-Type: multipart/form-data;
boundary=---------------------------277301736415408
Content-Length: 359
-----------------------------277301736415408
Content-Disposition: form-data; name="UserName"

MyUserName
-----------------------------277301736415408
Content-Disposition: form-data; name="Password"

MyPassword
-----------------------------277301736415408
Content-Disposition: form-data; name="Comments"

MyComments
-----------------------------277301736415408--

HTTP/1.x 200 OK
Date: Mon, 01 Nov 2004 15:46:56 GMT
Server: Stronghold/4.0 Apache/1.3.22
Expires: Monday, 1-November-104 13:46:57 GMT
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1769
by: Jay Donnell | last post by:
My script stopped working today after working perfectly for a month. It still works perfectly on our test server just not on our live server. The form that I use is this: <form enctype="multipart/form-data" action="" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="3000000" /> Send this file: <input name="userfile"...
3
3158
by: Don McNamara | last post by:
Hi, I've hit quite a strange problem with XmlSerializer on my W2K3 server. When I serialize/deserialize using an exe on my local computer (XP), everything works fine. When I put the code out on the server (W2K3) it throws an exception. It only seems to happen when serializing/deserializing _arrays_ of a type. If I just serialize/deserialize...
8
2223
by: Harvey Twyman | last post by:
I have code written under the CCS 'C' Compiler to run on a PIC microcontroller. Code Extract: ------------------------------- char a,b,c; ------------------------------- c = ( a == b ); -------------------------------
3
2328
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table using ADO. I'm getting sometimes correct values, sometimes null values (when I know I pass a valid default value) and other times multiple values! I...
31
2847
by: gamehack | last post by:
Hi all, I've been testing out a small function and surprisingly it does not work okay. Here's the full code listing: #include "stdlib.h" #include "stdio.h" char* escaped_byte_cstr_ref(char byte); int main (int argc, const char * argv)
2
4098
by: peter | last post by:
Hi, I have very strange situation but first description ;) I have: 1) project in VB.NET, in this f.e. 1 function: Public Function Login(ByVal UserName As String, ByVal UserPassword As String, Optional ByVal ConnectionParamList As String = Nothing) As String
6
1354
by: Ron M. Newman | last post by:
No project compile time reference is needed to my dynamic assembly DLL... I load an assembly DLL dynamically with a complex path. the assembly DLL is NOT in the exutable folder. I submit the fully qualified name to to the property grid (custom editor etc.) and it FAILS. How do I fix that? I simplu copy the dynamic assembly DLL to the...
2
1264
by: flits | last post by:
LS I have set up my first Linux box. But I experience some strange POST behaviour. Maybe this is a know bug or maybe I have done something wrong with my setup. But I just can't seem to find any solution about it on google. I have the following two scripts: 1.php:
160
5775
by: DiAvOl | last post by:
Hello everyone, Please take a look at the following code: #include <stdio.h> typedef struct person { char name; int age; } Person;
0
7629
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5455
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5172
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1164
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.