wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60774
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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