473,789 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebClient POST data.

Tom
Hey,

On the server side, i am using
<?php

print_r($_REQUE ST);

?>

To show me the data posted, so i know its not the server at fault..

My code,

MsgBox(wc.Uploa dString(New Uri("http://xxxxxxxxxxxx/xxxxxss.php?ran d=" &
GetRandomNumber (999, 999999)), "POST", "&ssdata=blah&v erify=xxxxx"))

Looks like it should work, but the POST data is never actually received
by the serverside script, possibly because of an Invalid post? All i
receive back is the random number i sent on the querystring.

Cheers

Tom
Jul 6 '07 #1
1 2132
Hi Tom,

What is it you want to do, hoppily not using the messagebox on an IE client?

Cor

"Tom" <to**********@g mail.comschreef in bericht
news:eY******** ******@TK2MSFTN GP03.phx.gbl...
Hey,

On the server side, i am using
<?php

print_r($_REQUE ST);

?>

To show me the data posted, so i know its not the server at fault..

My code,

MsgBox(wc.Uploa dString(New Uri("http://xxxxxxxxxxxx/xxxxxss.php?ran d=" &
GetRandomNumber (999, 999999)), "POST", "&ssdata=blah&v erify=xxxxx"))

Looks like it should work, but the POST data is never actually received by
the serverside script, possibly because of an Invalid post? All i receive
back is the random number i sent on the querystring.

Cheers

Tom

Jul 7 '07 #2

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

Similar topics

2
14057
by: Erik Johnson | last post by:
I am trying to work with a program that is trying make an HTTP POST of text data without any named form parameter. (I don't know - is that a normal thing to do?) I need to write a CGI program that accepts and processes that data. I'm not seeing how to get at data that's not a named form parameter. I wrote a simple CGI program to echo a string representation of the cgi.FieldStorage class that's recevied, and one to make an HTTP POST to it...
4
40920
by: supster | last post by:
Hello, I am trying to use HttpWebRequest to simulate sending some POST data from a form to a PHP script. I have accomplished this using: HttpWebRequest req = (HttpWebRequest) WebRequest.Create("http://mysite.com/index.php"); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; string postData = "var=value1&var2=value2"
1
2982
by: Adnan Selimovic | last post by:
Hi folks! I tried to post a web form using the WebClient class and HttpWebRequest/HttpWebResponse. It didn't work for the ASPX web pages. I always got an unposted version - like if I had just made a simple request without posting anything. I have written the same thing using the Perl's LWD::UserAgent class and it was the same. The web form is really very simple. As soon as I created the ASP file with the same form everything worked! Does...
23
14523
by: Bjorn | last post by:
Hi. Every time i post data in a form the contents are being checked for validity. When i click the back-button, all data is gone and i have to retype it. It's obvious that only a few or none of the visitors will retype it all so i'm asking: "how to preserve POST-data when clicking the back-button?" i've already tried to print post data as a value in a HTML tag but
2
22586
by: brian.lukoff | last post by:
What is the maximum size of POST data? A page on the ASP FAQ web site (http://classicasp.aspfaq.com/forms/what-is-the-limit-on-form/post-parameters.html) is confusing me: "While GET is limited to as low as 1024 characters, POST data is limited to 2 MB on IIS 4.0, and 128 KB on IIS 5.0. Each name/value is limited to 1024 characters, as imposed by the SGML spec." Does this last sentence mean that no form field can submit more than 1024...
3
3991
by: David Veeneman | last post by:
I am creating a form on the server that I want to POST to a URL that's being called with Server.Transfer(). What's the simplest way to do that? A little background: I'm programming buttons that link to PayPal's shopping cart. PayPal wants an HTML form with data about the product selected (including price), and they provide sample HTML to create a hidden form to transmit the data when the 'Add to cart' button is clicked. It would be...
4
3003
by: dac | last post by:
I am quietly going insane on this project. I've never worked on a project like this one before. All my previous sticky forms were for data entry, not editing. I don't know how to display the form with data from the database, allow the user to update it, and then display the form again with POST data. I can get the data out of the database and get the user updates back into the database, but how do I get the filled-out form back to the user...
8
3005
by: BiT | last post by:
Hello, I'm working right now on project in vb.net 2005 for my company, i need the project to download file from the company web site. In order to get the file i have to give the site address http://www.somthing.com and then send to the server post data like "&d=10202" to get the file. i've search google and newsgroups but I didn't find anything to solve my problem, I found this example...
5
11383
by: manheim | last post by:
I have a page posting a raw jpg to me via HTTP POST. All reference I've found is centered around retrieving POST data as name/value pairs which will not work in this situation. What I need to do is retrieve the raw POST data and save it as a jpg. Here is some php code that does the same thing for reference: $jfh = fopen($jpeg_file, 'w') or die("can't open file"); fwrite($jfh, $GLOBALS); fclose($jfh);
0
9663
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9979
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6765
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.