Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InternetReadFile() and 'POST' vs 'GET'

Status
Not open for further replies.

buzznick

IS-IT--Management
Dec 29, 2004
39
US
Hi all,

I'm using InternetReadFile() to successfully send form data via the 'GET' method to a url, eg:

Code:
[URL unfurl="true"]http://example.com/myscript.php?a=something&b=somethingelse[/URL]

And it works great... that is, except when the url length exceeds 2048 characters!

Ideally, I need to be able to send such amounts of data to the script via the 'POST' method which doesn't have the limitation on form data size/length.

However, I'm a bit confused as to how to do this. Is it possible to do this via the InternetReadFile() API still and if so how do I do it? If not, what APIs should I be using and how do I pass the formdata into the script?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top