This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes How to send ArrayList object in request url in java URL class and get it in php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to send ArrayList object in request url in java URL class and get it in php" Watch "How to send ArrayList object in request url in java URL class and get it in php" New topic
Author

How to send ArrayList object in request url in java URL class and get it in php

omair bcs
Greenhorn

Joined: Sep 19, 2013
Posts: 1
How to send ArrayList object in request url in java URL class and get it in php
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60788
    
  65

You can't send an array list directly. HTTP doesn't have any provisions for it.

What you can do is to send multiple request parameters with the same name, which can be interpreted as an array on the receiving end.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sujeeth Pakala
Ranch Hand

Joined: Mar 24, 2009
Posts: 94
Prepare the arraylist values as XML send as plain string ;-)


Regards, Sujeeth Pakala
SCJP, SCWCD, SCBCD, ICAD, XML Master Basic, Certified SOA Professional
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to send ArrayList object in request url in java URL class and get it in php
 
Similar Threads
how to send a post request using ajax
Post to Servlet from Applet doesn't work
PHP\Java Bridge
Writing to a URLConnection object
Access my request from my class